mirror of
https://github.com/php/php-src.git
synced 2026-03-28 18:22:42 +01:00
- Missed to add [ to meta char check
This commit is contained in:
@@ -251,7 +251,7 @@ static php_stream *php_glob_stream_opener(php_stream_wrapper *wrapper, char *pat
|
||||
pglob->pattern_len = strlen(pos);
|
||||
pglob->pattern = estrndup(pos, pglob->pattern_len);
|
||||
|
||||
if (strcspn(path, "*?") < (path_len - pglob->pattern_len)) {
|
||||
if (strcspn(path, "*?[") < (path_len - pglob->pattern_len)) {
|
||||
pglob->flags |= GLOB_APPEND;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user