cvs: phpweb / search.php /error index.php
| From: | jim winstead | Date: | Sun, 10 Feb 2002 01:41:56 +0000 |
| Subject: | cvs: phpweb / search.php /error index.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-8649@lists.php.net to get a copy of this message | ||
jimw Sat Feb 9 20:41:56 2002 EDT
Modified files:
/phpweb search.php
/phpweb/error index.php
Log:
don't set prevsearch cookie when automatically bounced to search
page by an error.
Index: phpweb/search.php
diff -u phpweb/search.php:1.23 phpweb/search.php:1.24
--- phpweb/search.php:1.23 Sun Sep 23 22:54:46 2001
+++ phpweb/search.php Sat Feb 9 20:41:55 2002
@@ -14,7 +14,8 @@
$prevsearch = stripslashes($prevsearch);
if ($pattern) {
- setcookie("prevsearch",$pattern,0,"",".php.net");
+ if (!$auto)
+ setcookie("prevsearch",$pattern,0,"",".php.net");
if ($show=="quickref") {
header("Location: manual-lookup.php?pattern=".urlencode($pattern));
Index: phpweb/error/index.php
diff -u phpweb/error/index.php:1.36 phpweb/error/index.php:1.37
--- phpweb/error/index.php:1.36 Sun Feb 3 07:41:39 2002
+++ phpweb/error/index.php Sat Feb 9 20:41:56 2002
@@ -87,5 +87,5 @@
# redirect to the search page with the pattern set to $REQUEST_URI
-header('Location:
/search.php?show=nosource&pattern='.urlencode(substr($REQUEST_URI,1)) );
+header('Location:
/search.php?show=nosource&auto=1&pattern='.urlencode(substr($REQUEST_URI,1)) );
?>