cvs: phpdoc /en/chapters security.xml
| From: | Ron Chmara | Date: | Sat, 13 Jan 2001 07:35:29 +0000 |
| Subject: | cvs: phpdoc /en/chapters security.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969333617@lists.php.net to get a copy of this message | ||
ronabop Fri Jan 12 23:35:29 2001 EDT
Modified files:
/phpdoc/en/chapters security.xml
Log:
More secure example
Index: phpdoc/en/chapters/security.xml
diff -u phpdoc/en/chapters/security.xml:1.13 phpdoc/en/chapters/security.xml:1.14
--- phpdoc/en/chapters/security.xml:1.13 Tue Nov 7 15:11:07 2000
+++ phpdoc/en/chapters/security.xml Fri Jan 12 23:35:28 2001
@@ -390,7 +390,7 @@
<title>More secure file name checking</title>
<programlisting role="php">
<?php
-$username = $HTTP_REMOTE_USER;
+$username = get_env("REMOTE_USER");
$homedir = "/home/$username";
if (!ereg('^[^./][^/]*$', $userfile))