mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
fix file check and avoid segfault
This commit is contained in:
parent
7208556ca4
commit
3bd40d9000
@ -316,7 +316,7 @@ PHP_FUNCTION(finfo_open)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (*file) { /* user specified filed, perform open_basedir checks */
|
||||
if (file && *file) { /* user specified file, perform open_basedir checks */
|
||||
if (!VCWD_REALPATH(file, resolved_path)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user