cvs: /php4 php_virtual_cwd.c

From: Date: Fri, 21 Apr 2000 14:42:51 +0000
Subject: cvs: /php4 php_virtual_cwd.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-13884@lists.php.net to get a copy of this message
andi Fri Apr 21 07:42:51 2000 EDT Modified files: /php4 php_virtual_cwd.c Log: - Small fix to virtual_Chdir_file() to include the trailing slash when the file is in the root directory. Index: php4/php_virtual_cwd.c diff -u php4/php_virtual_cwd.c:1.34 php4/php_virtual_cwd.c:1.35 --- php4/php_virtual_cwd.c:1.34 Thu Apr 20 10:40:03 2000 +++ php4/php_virtual_cwd.c Fri Apr 21 07:42:20 2000 @@ -345,6 +345,9 @@ return virtual_chdir(path); } + if (length == COPY_WHEN_ABSOLUTE) { /* Also use trailing slash if this is root */ + length++; + } temp = (char *) malloc(length+1); memcpy(temp, path, length); temp[length] = 0;

« previous php.version4 (#13884) next »