From 5181c741d56722f5db5b2590a3cd8c217af1ae86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Fri, 11 Apr 2014 13:52:25 +0200 Subject: [PATCH] Encode the URI for the search. should certainly be done elsewhere. fix #151 --- util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.js b/util.js index f440133..85f8e5d 100644 --- a/util.js +++ b/util.js @@ -391,7 +391,7 @@ function search_Submitted (event) { return; } event.preventDefault(); - var url = str_format ("index.php?page=9¤t={0}&query={1}&db={2}", currentData.page, $("input[name=query]").val (), currentData.databaseId); + var url = str_format ("index.php?page=9¤t={0}&query={1}&db={2}", currentData.page, encodeURIComponent ($("input[name=query]").val ()), currentData.databaseId); navigateTo (url); }