cvs: php4 /main php_virtual_cwd.c

From: Date: Thu, 15 Jun 2000 18:36:46 +0000
Subject: cvs: php4 /main php_virtual_cwd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-291@lists.php.net to get a copy of this message
andi Thu Jun 15 11:36:46 2000 EDT Modified files: /php4/main php_virtual_cwd.c Log: - virtual_fopen() should fail on empty path Index: php4/main/php_virtual_cwd.c diff -u php4/main/php_virtual_cwd.c:1.54 php4/main/php_virtual_cwd.c:1.55 --- php4/main/php_virtual_cwd.c:1.54 Mon Jun 12 12:39:04 2000 +++ php4/main/php_virtual_cwd.c Thu Jun 15 11:36:46 2000 @@ -411,6 +411,10 @@ FILE *f; CWDLS_FETCH(); + if (path[0] == '\0') { /* Fail to open empty path */ + return NULL; + } + CWD_STATE_COPY(&new_state, &CWDG(cwd)); virtual_file_ex(&new_state, path, NULL);

« previous php.cvs (#291) next »