From ee8aa910b9db2f90bfb46ba852eaa349343d5e04 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 21 Sep 2009 06:44:14 +0000 Subject: Patch #579366 by sun, litwol | chx, Dries: simplified form API redirection handling. I can actually understand it now. ;-). --- modules/search/search.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/search') 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']; -- cgit v1.2.3