tony2001                Fri Aug 29 13:48:26 2008 UTC

  Modified files:              
    /php-src/ext/fileinfo       fileinfo.c 
  Log:
  check for \0 to be consistent with other functions
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/fileinfo/fileinfo.c?r1=1.29&r2=1.30&diff_format=u
Index: php-src/ext/fileinfo/fileinfo.c
diff -u php-src/ext/fileinfo/fileinfo.c:1.29 
php-src/ext/fileinfo/fileinfo.c:1.30
--- php-src/ext/fileinfo/fileinfo.c:1.29        Fri Aug 29 13:39:17 2008
+++ php-src/ext/fileinfo/fileinfo.c     Fri Aug 29 13:48:26 2008
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: fileinfo.c,v 1.29 2008/08/29 13:39:17 derick Exp $ */
+/* $Id: fileinfo.c,v 1.30 2008/08/29 13:48:26 tony2001 Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -550,7 +550,7 @@
                        } else { /* local file */
                                char resolved_path[MAXPATHLEN];
 
-                               if (Z_STRVAL_P(what) && 
VCWD_REALPATH(Z_STRVAL_P(what), resolved_path)) {
+                               if (*Z_STRVAL_P(what) && 
VCWD_REALPATH(Z_STRVAL_P(what), resolved_path)) {
                                        if ((PG(safe_mode) && 
(!php_checkuid(resolved_path, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || 
php_check_open_basedir(resolved_path TSRMLS_CC)) {
                                                goto cleanup;
                                        }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to