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

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to