From 47ce9efd7ebe29a2b78cab26234bee0b5028f8d4 Mon Sep 17 00:00:00 2001 From: Kevin Abel <kabel2@unl.edu> Date: Tue, 8 Nov 2011 22:19:49 +0000 Subject: [PATCH] Encode the q param to the directory service to ensure proper functionality. --- www/searchFunc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/searchFunc.js b/www/searchFunc.js index 7b6efd4..1ad1cf3 100644 --- a/www/searchFunc.js +++ b/www/searchFunc.js @@ -171,7 +171,7 @@ UNL_Search.doPeoplefinderQuery = function (val) { } else { var pointer = this; WDN.loadJQuery(function(){ - WDN.get("http://directory.unl.edu/service.php?q=" + val, null, function(data, textStatus) { + WDN.get("http://directory.unl.edu/service.php?q=" + encodeURIComponent(val), null, function(data, textStatus) { pointer.peoplefinderCache.save(val, data); UNL_Search.handlePeoplefinderResults(data); }); -- GitLab