diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-21 06:44:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-21 06:44:14 +0000 |
commit | ee8aa910b9db2f90bfb46ba852eaa349343d5e04 (patch) | |
tree | 00b849b68e65ae170278f74c422434f4a0bae55d /modules/search | |
parent | 0741d8e32320f4578853ae92b242c2f7cd2d339a (diff) | |
download | brdo-ee8aa910b9db2f90bfb46ba852eaa349343d5e04.tar.gz brdo-ee8aa910b9db2f90bfb46ba852eaa349343d5e04.tar.bz2 |
Patch #579366 by sun, litwol | chx, Dries: simplified form API redirection handling. I can actually understand it now. ;-).
Diffstat (limited to 'modules/search')
-rw-r--r-- | modules/search/search.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/search/search.module b/modules/search/search.module index 35b817d3f..9d15edb5e 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -917,8 +917,8 @@ function search_box_form_submit($form, &$form_state) { // functionality, so we override any static destination set in the request, // for example by drupal_access_denied() or drupal_not_found() // (see http://drupal.org/node/292565). - if (isset($_REQUEST['destination'])) { - unset($_REQUEST['destination']); + if (isset($_GET['destination'])) { + unset($_GET['destination']); } $form_id = $form['form_id']['#value']; |