From 674a7de88a1d5ad6f0594c361339f35ad9e94e0a Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Fri, 29 Aug 2008 13:48:26 +0000 Subject: [PATCH] check for \0 to be consistent with other functions --- ext/fileinfo/fileinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1