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

From: Date: Mon, 16 Jul 2001 22:44:57 +0000
Subject: Bug #12194: Php_open_temporary_file.c doesn't handle trailing slash on path.
Groups: php.dev 
Request: Send a blank email to php-dev+get-60126@lists.php.net to get a copy of this message
From: jonesd@er6s1.eng.ohio-state.edu Operating system: all PHP version: 4.0.6 PHP Bug Type: PHP options/info functions Bug description: Php_open_temporary_file.c doesn't handle trailing slash on path. 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 bug report at: http://bugs.php.net/?id=12194&edit=1

« previous php.dev (#60126) next »