? search_404-force-destination.d5.patch
? sites/default/files
Index: .htaccess
===================================================================
RCS file: /cvs/drupal/drupal/.htaccess,v
retrieving revision 1.81.2.6
diff -u -p -r1.81.2.6 .htaccess
--- .htaccess	26 Feb 2009 07:03:29 -0000	1.81.2.6
+++ .htaccess	7 Aug 2009 23:01:46 -0000
@@ -95,7 +95,7 @@ DirectoryIndex index.php
   #
   # If your site is running in a VirtualDocumentRoot at http://example.com/,
   # uncomment the following line:
-  # RewriteBase /
+  RewriteBase /
 
   # Rewrite old-style URLs of the form 'node.php?id=x'.
   #RewriteCond %{REQUEST_FILENAME} !-f
Index: modules/search/search.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/search/search.module,v
retrieving revision 1.209.2.6
diff -u -p -r1.209.2.6 search.module
--- modules/search/search.module	14 May 2008 06:35:29 -0000	1.209.2.6
+++ modules/search/search.module	7 Aug 2009 23:01:53 -0000
@@ -1052,6 +1052,17 @@ function search_box($form_id) {
  * Process a block search form submission.
  */
 function search_box_form_submit($form_id, $form_values) {
+  // The search form relies on control of the redirect destination for its
+  // 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($_REQUEST['edit']['destination'])) {
+    unset($_REQUEST['edit']['destination']);
+  }
+
   return 'search/node/'. trim($form_values[$form_id .'_keys']);
 }
 
Index: sites/default/settings.php
===================================================================
RCS file: /cvs/drupal/drupal/sites/default/Attic/settings.php,v
retrieving revision 1.39.2.4
diff -u -p -r1.39.2.4 settings.php
--- sites/default/settings.php	16 Jun 2009 18:29:52 -0000	1.39.2.4
+++ sites/default/settings.php	7 Aug 2009 23:01:57 -0000
@@ -90,7 +90,7 @@
  *   $db_url = 'mysqli://username:password@localhost/databasename';
  *   $db_url = 'pgsql://username:password@localhost/databasename';
  */
-$db_url = 'mysql://username:password@localhost/databasename';
+$db_url = 'mysql://john:19Aitey4@localhost/john_d5cvs';
 $db_prefix = '';
 
 /**
