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

encode quotes

parent 1fe48e26
Branches
No related tags found
No related merge requests found
......@@ -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'].'"}';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment