cvs: phpweb /include layout.inc
| From: | Jim Winstead | Date: | Fri, 21 Sep 2001 02:36:30 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-6520@lists.php.net to get a copy of this message | ||
jimw Thu Sep 20 22:36:30 2001 EDT
Modified files:
/phpweb/include layout.inc
Log:
handle magic quotes here, too
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.51 phpweb/include/layout.inc:1.52
--- phpweb/include/layout.inc:1.51 Wed Aug 29 14:12:34 2001
+++ phpweb/include/layout.inc Thu Sep 20 22:36:30 2001
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.51 2001/08/29 18:12:34 jimw Exp $ */
+/* $Id: layout.inc,v 1.52 2001/09/21 02:36:30 jimw Exp $ */
# spacer()
# print a IMG tag for a sized spacer GIF
@@ -193,7 +193,7 @@
echo delim();
print_link('/support.php','support',false,'class="small"');
echo delim();
- print_link('/bugs.php','reporting
bugs',false,'class="small"');
+ print_link('http://bugs.php.net/','reporting
bugs',false,'class="small"');
echo delim();
print_link('/links.php','links',false,'class="small"');
?> <br>
@@ -206,7 +206,7 @@
<form method="post" action="/search.php">
<td align="right" valign="top" colspan="2"><font
color="#ffffff">
<small>search for</small>
-<input class="small" type="text" name="pattern"
value="<?php echo htmlspecialchars($prevsearch) ?>" size="30">
+<input class="small" type="text" name="pattern"
value="<?php echo
htmlspecialchars(get_magic_quotes_gpc()?stripslashes($prevsearch):$prevsearch) ?>"
size="30">
<small>in the</small>
<select name="show" class="small">
<option value="quickref" selected>function list