From:             [EMAIL PROTECTED]
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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to