cvs: peardoc /en/package/html/html-form examples.xml
| From: | Daniel Convissor | Date: | Fri, 08 Jul 2005 20:28:31 +0000 |
| Subject: | cvs: peardoc /en/package/html/html-form examples.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-6485@lists.php.net to get a copy of this message | ||
danielc Fri Jul 8 16:28:31 2005 EDT
Modified files:
/peardoc/en/package/html/html-form examples.xml
Log:
* PHP_SELF can be tainted. Fix rest of examples.
http://cvs.php.net/diff.php/peardoc/en/package/html/html-form/examples.xml?r1=1.4&r2=1.5&ty=u
Index: peardoc/en/package/html/html-form/examples.xml
diff -u peardoc/en/package/html/html-form/examples.xml:1.4
peardoc/en/package/html/html-form/examples.xml:1.5
--- peardoc/en/package/html/html-form/examples.xml:1.4 Mon Jun 13 13:05:18 2005
+++ peardoc/en/package/html/html-form/examples.xml Fri Jul 8 16:28:30 2005
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<refentry id="package.html.html-form.examples">
<refentryinfo>
<author>
@@ -68,7 +68,7 @@
<![CDATA[
require_once "HTML/Form.php";
-$form = new HTML_Form($_SERVER['PHP_SELF']);
+$form = new HTML_Form('receivingscript.php');
$form->displayText("name", "What's your name?");
]]>
@@ -100,7 +100,7 @@
<![CDATA[
require_once "HTML/Form.php";
-$form = new HTML_Form($_SERVER['PHP_SELF']);
+$form = new HTML_Form('receivingscript.php');
$str = $form->returnPassword("password", "Choose a password");
]]>