summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-10-21 11:14:55 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-10-21 11:14:55 +0000
commitf31db8d70f08a29bac6b98049c138344d37b75ea (patch)
tree4bf48f76d5b43124edfc47ac41717eba6ae65ea1 /modules/search
parent6777fdb193fb9db01243082b4181ef7637c4ac91 (diff)
downloadbrdo-f31db8d70f08a29bac6b98049c138344d37b75ea.tar.gz
brdo-f31db8d70f08a29bac6b98049c138344d37b75ea.tar.bz2
- #22850: Search query containing / results in 404 on clean URLs.
Diffstat (limited to 'modules/search')
-rw-r--r--modules/search/search.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index e26f7045e..54c656e0f 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -811,7 +811,7 @@ function search_view() {
$type = 'node';
}
$keys = module_invoke($type, 'search', 'post', $_POST['edit']['keys']);
- drupal_goto('search/'. urlencode($type) .'/'. urlencode(is_null($keys) ? $_POST['edit']['keys'] : $keys));
+ drupal_goto('search/'. drupal_urlencode($type) .'/'. drupal_urlencode(is_null($keys) ? $_POST['edit']['keys'] : $keys));
}
else if ($type == '') {
// Note: search/node can not be a default tab because it would take on the
@@ -828,7 +828,7 @@ function search_view() {
watchdog('search',
t('Search: %keys (%type).', array('%keys' => theme('placeholder', $keys), '%type' => module_invoke($type, 'search', 'name'))),
WATCHDOG_NOTICE,
- l(t('results'), 'search/'. urlencode($type) .'/'. urlencode($keys))
+ l(t('results'), 'search/'. drupal_urlencode($type) .'/'. drupal_urlencode($keys))
);
// Collect the search results: