cvs: phpweb / search.php
| From: | Gabor Hojtsy | Date: | Fri, 25 Apr 2003 12:06:09 +0000 |
| Subject: | cvs: phpweb / search.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17040@lists.php.net to get a copy of this message | ||
goba Fri Apr 25 08:06:09 2003 EDT
Modified files:
/phpweb search.php
Log:
Make the $SEARCH_BASE creation independent, fixing bug #23336
Index: phpweb/search.php
diff -u phpweb/search.php:1.74 phpweb/search.php:1.75
--- phpweb/search.php:1.74 Wed Apr 23 16:05:02 2003
+++ phpweb/search.php Fri Apr 25 08:06:08 2003
@@ -1,5 +1,5 @@
<?php
-/* $Id: search.php,v 1.74 2003/04/23 20:05:02 goba Exp $ */
+/* $Id: search.php,v 1.75 2003/04/25 12:06:08 goba Exp $ */
include_once "prepend.inc";
@@ -76,13 +76,15 @@
}
// If we are on the same site, there is no need for the base
-// This makes URLs shorter and POST data smaller. If we have
-// a base, and not on the same site, we need to make relative
-// links be relative to the original server
-unset($SEARCH_BASE);
+// This makes URLs shorter and POST data smaller.
if (isset($base) && $base == $MYSITE) {
unset($base);
-} else {
+}
+
+// If we still have a base, we need to make relative
+// links be relative to the original server
+unset($SEARCH_BASE);
+if (isset($base)) {
$SEARCH_BASE = $base . "search.php";
}