cvs: php-src /main/streams glob_wrapper.c
| From: | Marcus Boerger | Date: | Sat, 03 Mar 2007 23:56:43 +0000 |
| Subject: | cvs: php-src /main/streams glob_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-43383@lists.php.net to get a copy of this message | ||
helly Sat Mar 3 23:56:43 2007 UTC
Modified files:
/php-src/main/streams glob_wrapper.c
Log:
- Missed to add [ to meta char check
http://cvs.php.net/viewvc.cgi/php-src/main/streams/glob_wrapper.c?r1=1.5&r2=1.6&diff_format=u
Index: php-src/main/streams/glob_wrapper.c
diff -u php-src/main/streams/glob_wrapper.c:1.5 php-src/main/streams/glob_wrapper.c:1.6
--- php-src/main/streams/glob_wrapper.c:1.5 Sat Mar 3 23:41:10 2007
+++ php-src/main/streams/glob_wrapper.c Sat Mar 3 23:56:43 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: glob_wrapper.c,v 1.5 2007/03/03 23:41:10 helly Exp $ */
+/* $Id: glob_wrapper.c,v 1.6 2007/03/03 23:56:43 helly Exp $ */
#include "php.h"
#include "php_streams_int.h"
@@ -251,7 +251,7 @@
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;
}