#12194 [Com]: Php_open_temporary_file.c doesn't handle trailing slash on path.
| From: | nude-young1048 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:10:33 +0000 |
| Subject: | #12194 [Com]: Php_open_temporary_file.c doesn't handle trailing slash on path. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63168@lists.php.net to get a copy of this message | ||
ID: 12194
Comment by: nude-young1048 at hotmail dot com
Reported By: jonesd at er6s1 dot eng dot ohio-state dot edu
Status: Bogus
Bug Type: PHP options/info functions
Operating System: all
PHP Version: 4.0.6
New Comment:
<a href=http://xxxxxfulltime-lesbi.da.ru>young
nude</a>
Previous Comments:
------------------------------------------------------------------------
[2002-02-26 21:32:09] yohgaki@php.net
The version of PHP that this bug was reported in is too old. Please
try to reproduce this bug in the latest version of PHP (available
from http://www.php.net/downloads.php
If you are still able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
------------------------------------------------------------------------
[2001-07-16 18:44:57] jonesd at er6s1 dot eng dot ohio-state dot edu
In file php_open_temporary_file.c, the code test for the existence of a
trailing slash on the 'path' argument
using the statement:
if (*path+strlen(path)-1 == '/') { ...
This test is incorrect, meaning a trailing slash on, upload_tmp_dir,
for example, won't be handled as intended.
A correct way to do the test would be:
if (path[strlen(path)-1] == '/') { ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=12194&edit=1