diff options
-rw-r--r-- | ext/phar/phar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/phar/phar.c b/ext/phar/phar.c index e053b6dd66..414acc78f7 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -1843,7 +1843,7 @@ static int phar_check_str(const char *fname, const char *ext_str, int ext_len, i pos = strstr(ext_str, ".phar"); if (!pos - || pos != ext_str && (*(pos - 1) == '/') + || (pos != ext_str && (*(pos - 1) == '/')) || (ext_len - (pos - ext_str)) < 5 || !(pos += 5) || !(*pos == '\0' || *pos == '/' || *pos == '.')) { |