Bug #12194 Updated: Php_open_temporary_file.c doesn't handle trailing slash on path.

From: Date: Wed, 27 Feb 2002 02:32:09 +0000
Subject: Bug #12194 Updated: 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-1132@lists.php.net to get a copy of this message
ID: 12194 Updated by: yohgaki@php.net -Summary: Php_open_temporary_file.c doesn't handle trailing slash on path. Reported By: jonesd@er6s1.eng.ohio-state.edu -Status: Open +Status: Bogus Bug Type: PHP options/info functions Operating System: all PHP Version: 4.0.6 New Comment: 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". Previous Comments: ------------------------------------------------------------------------ [2001-07-16 18:44:57] jonesd@er6s1.eng.ohio-state.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

« previous php.bugs (#1132) next »