diff options
Diffstat (limited to 'main/fopen_wrappers.c')
| -rw-r--r-- | main/fopen_wrappers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 4ec3e5ee7a..812d591767 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -477,7 +477,7 @@ PHPAPI char *php_resolve_path(const char *filename, int filename_length, const c char *actual_path; php_stream_wrapper *wrapper; - if (!filename) { + if (!filename || CHECK_NULL_PATH(filename, filename_length)) { return NULL; } |
