cvs: phpweb /include layout.inc
| From: | Jacques Marneweck | Date: | Fri, 14 Mar 2003 20:49:56 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-16357@lists.php.net to get a copy of this message | ||
jacques Fri Mar 14 15:49:56 2003 EDT
Modified files:
/phpweb/include layout.inc
Log:
* This is a quick fix for submitting a new search when you are on
ch.php.net and you have $base set from the mirror site you are using
prior to redirection. (BUG #22706).
--jm
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.127 phpweb/include/layout.inc:1.128
--- phpweb/include/layout.inc:1.127 Sun Mar 2 14:08:15 2003
+++ phpweb/include/layout.inc Fri Mar 14 15:49:56 2003
@@ -1,6 +1,6 @@
<?php
-/* $Id: layout.inc,v 1.127 2003/03/02 19:08:15 goba Exp $ */
+/* $Id: layout.inc,v 1.128 2003/03/14 20:49:56 jacques Exp $ */
// Print an image for a sized spacer
function spacer($width = 1, $height = 1, $return = false, $align = false, $extras = false)
@@ -243,6 +243,11 @@
if (isset($EXPL_LANG)) {
echo '<input type="hidden" name="lang" value="'.
$EXPL_LANG . '" />';
}
+
+ if (isset($base) && $base != $MYSITE) {
+ $base = stripslashes($base);
+ echo '<input type="hidden" name="base" value="' . $base .
'" />';
+ }
?>
<small><span title="Keyboard shortcut: Alt+S (Win), Ctrl+S
(Apple)"><u>s</u>earch for</span></small>
<input class="small" type="text" name="pattern" value=""
size="30" accesskey="s" />