summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Wittens2005-12-07 15:32:11 (GMT)
committerSteven Wittens2005-12-07 15:32:11 (GMT)
commit9e007c11aaf9cb39a566bc2215f7d373de8828ad (patch)
tree7ade8638ccd8bbe3b96cfa7cb927528a6e762878
parent3342593eac2440bbf70fa06a484b273d8e5e075e (diff)
- Missing URLencode for remembering search keywords across tabs
-rw-r--r--modules/search.module2
-rw-r--r--modules/search/search.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/search.module b/modules/search.module
index 130429f..908509d 100644
--- a/modules/search.module
+++ b/modules/search.module
@@ -165,7 +165,7 @@ function search_menu($may_cache) {
// To remember the user's search keywords when switching across tabs,
// we dynamically add the keywords to the search tabs' paths.
$keys = search_get_keys();
- $keys = strlen($keys) ? '/'. $keys : '';
+ $keys = strlen($keys) ? '/'. drupal_urlencode($keys) : '';
foreach (module_list() as $name) {
if (module_hook($name, 'search') && $title = module_invoke($name, 'search', 'name')) {
$items[] = array('path' => 'search/'. $name . $keys, 'title' => $title,
diff --git a/modules/search/search.module b/modules/search/search.module
index 130429f..908509d 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -165,7 +165,7 @@ function search_menu($may_cache) {
// To remember the user's search keywords when switching across tabs,
// we dynamically add the keywords to the search tabs' paths.
$keys = search_get_keys();
- $keys = strlen($keys) ? '/'. $keys : '';
+ $keys = strlen($keys) ? '/'. drupal_urlencode($keys) : '';
foreach (module_list() as $name) {
if (module_hook($name, 'search') && $title = module_invoke($name, 'search', 'name')) {
$items[] = array('path' => 'search/'. $name . $keys, 'title' => $title,