From 80afa1be2a3240d163994eb0bdf7700fbf8ecd1d Mon Sep 17 00:00:00 2001
From: Brett Bieber <brett.bieber@gmail.com>
Date: Thu, 15 Apr 2010 14:46:36 +0000
Subject: [PATCH] encode quotes

---
 www/index.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/index.php b/www/index.php
index 3e812ce..d73b6ae 100644
--- a/www/index.php
+++ b/www/index.php
@@ -40,7 +40,7 @@ if (isset($_GET['u'])
     
     if (isset($_GET['cx'])) {
         // Use their custom search engine instead of the linked one.
-        $context = '"'.htmlentities($_GET['cx']).'"';
+        $context = '"'.htmlentities($_GET['cx'], ENT_QUOTES).'"';
     } else {
         // Auto-build a custom search engine
         $context = '{crefUrl :"http://www1.unl.edu/search/linkedcse/?u='.$_GET['u'].'"}';
-- 
GitLab