From: Antony Dovgal Date: Fri, 29 Aug 2008 13:48:26 +0000 (+0000) Subject: check for \0 to be consistent with other functions X-Git-Tag: BEFORE_HEAD_NS_CHANGE~531 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=674a7de88a1d5ad6f0594c361339f35ad9e94e0a;p=php check for \0 to be consistent with other functions --- diff --git a/ext/fileinfo/fileinfo.c b/ext/fileinfo/fileinfo.c index 14be430683..87d83b5580 100644 --- a/ext/fileinfo/fileinfo.c +++ b/ext/fileinfo/fileinfo.c @@ -550,7 +550,7 @@ PHP_FUNCTION(mime_content_type) } 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; }