|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-03-05 12:29 UTC] agreenbu at intelenet dot state dot in dot us
[2001-06-03 04:14 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 05:00:01 2025 UTC |
/opt/apache/htdocs is the Document Root for Apache. /opt/apache/htdocs/directory is a symbolic link that points to /home/morespace/directory. Document /home/morespace/directory/username/index.php contains the code: $RealPath = realpath("."); if (!stristr($RealPath, $UserName)){ echo "This directory does not belong to you. Attempt has been logged."; session_destroy(); exit; } This code always fails because realpath(".") returns an empty string.