From 5a33c538eb5fca087a1eb2363fbf5f3e18dc45f6 Mon Sep 17 00:00:00 2001 From: Ron Chmara Date: Sat, 13 Jan 2001 07:35:28 +0000 Subject: [PATCH] More secure example git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@39334 c90b9560-bf6c-de11-be94-00142212c4b1 --- chapters/security.xml | 2 +- security/index.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chapters/security.xml b/chapters/security.xml index f44faf173f..063016f61d 100644 --- a/chapters/security.xml +++ b/chapters/security.xml @@ -390,7 +390,7 @@ echo "$file_to_delete has been deleted!"; More secure file name checking <?php -$username = $HTTP_REMOTE_USER; +$username = get_env("REMOTE_USER"); $homedir = "/home/$username"; if (!ereg('^[^./][^/]*$', $userfile)) diff --git a/security/index.xml b/security/index.xml index f44faf173f..063016f61d 100644 --- a/security/index.xml +++ b/security/index.xml @@ -390,7 +390,7 @@ echo "$file_to_delete has been deleted!"; More secure file name checking <?php -$username = $HTTP_REMOTE_USER; +$username = get_env("REMOTE_USER"); $homedir = "/home/$username"; if (!ereg('^[^./][^/]*$', $userfile))