[drupal-devel] [bug] Search query containing / gives 404
Dries
drupal-devel at drupal.org
Sat May 14 18:10:37 UTC 2005
Issue status update for http://drupal.org/node/22850
Project: Drupal
Version: cvs
Component: search.module
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: wulff
Updated by: Dries
Status: patch
Waiting for Steven's feedback on this. He know what the best fix is.
Dries
Previous comments:
------------------------------------------------------------------------
May 14, 2005 - 13:25 : wulff
Attachment: http://drupal.org/files/issues/search.module.patch (740 bytes)
Searching for a date, e.g. "14/05/2005", results in a 404 error.
search.module redirects to http://drupal.org/search/node/14%2F05%2F2005
which isn't handled correctly by mod_rewrite.
The attached patch replaces all occurrences of '%2F' in the query with
'/'.
A test query for '1/2 1~2' results in a redirect to
http://drupalhead.local/search/node/1/2+1%7E2 which is handled
correctly by mod_rewrite.
(Solution found via comment on
http://ccca.nctu.edu.tw/~hlb/tavi/index.php?page=URL+Rewriting)
More information about the drupal-devel
mailing list