1
0
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:
Marcus Boerger
2007-03-03 23:56:43 +00:00
parent b0a595d2d7
commit bf8ea04c13

View File

@@ -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;
}