Encode the URI for the search. should certainly be done elsewhere.

fix #151
This commit is contained in:
Sébastien Lucas 2014-04-11 13:52:25 +02:00
parent 73e05fc96b
commit 5181c741d5

View file

@ -391,7 +391,7 @@ function search_Submitted (event) {
return; return;
} }
event.preventDefault(); event.preventDefault();
var url = str_format ("index.php?page=9&current={0}&query={1}&db={2}", currentData.page, $("input[name=query]").val (), currentData.databaseId); var url = str_format ("index.php?page=9&current={0}&query={1}&db={2}", currentData.page, encodeURIComponent ($("input[name=query]").val ()), currentData.databaseId);
navigateTo (url); navigateTo (url);
} }