Date: 03/05/01
- Next message: Sebastian Bergmann: "[PHP-DEV] Weird memory problems"
- Previous message: Dan Kalowsky: "Re: [PHP-DEV] Bug in Php 4.0.4pl1 configure (does not require solid lib)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 9563
User Update by: agreenbu <email protected>
Status: Open
Bug Type: Filesystem function related
Description: realpath() returns empty string when working directory is under a symbolic link
Looks like it rejects symbolic links under Solaris 2.7 altogether...
Previous Comments:
---------------------------------------------------------------------------
[2001-03-05 11:11:18] agreenbu <email protected>
/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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9563
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Sebastian Bergmann: "[PHP-DEV] Weird memory problems"
- Previous message: Dan Kalowsky: "Re: [PHP-DEV] Bug in Php 4.0.4pl1 configure (does not require solid lib)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

