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))
- [PHP-DOC] cvs: phpdoc /en/chapters security.xml Ron Chmara
- [PHP-DOC] cvs: phpdoc /en/chapters security.xml Ron Chmara
- [PHP-DOC] cvs: phpdoc /en/chapters security.xml Ron Chmara
- [PHP-DOC] cvs: phpdoc /en/chapters security.xml Damien Seguy
- [PHP-DOC] cvs: phpdoc /en/chapters security.xml Hojtsy Gabor
- [PHP-DOC] cvs: phpdoc /en/chapters security.xml Jim Winstead
- [PHP-DOC] cvs: phpdoc /en/chapters security.xml Ron Chmara
- [PHP-DOC] cvs: phpdoc /en/chapters security.xml Philip Olson
- [PHP-DOC] cvs: phpdoc /en/chapters security.xml jim winstead
- [PHP-DOC] cvs: phpdoc /en/chapters security.xml Thomas Schoefbeck
- [PHP-DOC] cvs: phpdoc /en/chapters security.xml Philip Olson