Skip to content
Snippets Groups Projects
Commit 80afa1be authored by Brett Bieber's avatar Brett Bieber
Browse files

encode quotes

parent 1fe48e26
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ if (isset($_GET['u']) ...@@ -40,7 +40,7 @@ if (isset($_GET['u'])
if (isset($_GET['cx'])) { if (isset($_GET['cx'])) {
// Use their custom search engine instead of the linked one. // Use their custom search engine instead of the linked one.
$context = '"'.htmlentities($_GET['cx']).'"'; $context = '"'.htmlentities($_GET['cx'], ENT_QUOTES).'"';
} else { } else {
// Auto-build a custom search engine // Auto-build a custom search engine
$context = '{crefUrl :"http://www1.unl.edu/search/linkedcse/?u='.$_GET['u'].'"}'; $context = '{crefUrl :"http://www1.unl.edu/search/linkedcse/?u='.$_GET['u'].'"}';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment