mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
fix file check and avoid segfault
This commit is contained in:
@@ -316,7 +316,7 @@ PHP_FUNCTION(finfo_open)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (*file) { /* user specified filed, perform open_basedir checks */
|
||||
if (file && *file) { /* user specified filed, perform open_basedir checks */
|
||||
if (!VCWD_REALPATH(file, resolved_path)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user