Skip to content
Snippets Groups Projects
Commit 1f078a9d authored by Steven Wittens's avatar Steven Wittens
Browse files

- Missing URLencode for remembering search keywords across tabs

parent 1167cb63
No related branches found
No related tags found
No related merge requests found
......@@ -106,7 +106,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) ? '/'. 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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment