iliaa           Mon Feb 23 16:52:45 2009 UTC

  Modified files:              
    /php-src/ext/filter logical_filters.c 
  Log:
  MFB: Fixed bug #47435 (FILTER_FLAG_NO_PRIV_RANGE does not work with ipv6
  addresses in the filter extension)
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/logical_filters.c?r1=1.32&r2=1.33&diff_format=u
Index: php-src/ext/filter/logical_filters.c
diff -u php-src/ext/filter/logical_filters.c:1.32 
php-src/ext/filter/logical_filters.c:1.33
--- php-src/ext/filter/logical_filters.c:1.32   Mon Feb  2 23:51:19 2009
+++ php-src/ext/filter/logical_filters.c        Mon Feb 23 16:52:45 2009
@@ -17,7 +17,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: logical_filters.c,v 1.32 2009/02/02 23:51:19 iliaa Exp $ */
+/* $Id: logical_filters.c,v 1.33 2009/02/23 16:52:45 iliaa Exp $ */
 
 #include "php_filter.h"
 #include "filter_private.h"
@@ -659,6 +659,12 @@
                                if (res < 1) {
                                        RETURN_VALIDATION_FAILED
                                }
+                               /* Check flags */
+                               if (flags & FILTER_FLAG_NO_PRIV_RANGE) {
+                                       if (Z_STRLEN_P(value) >=2 && 
(!strncasecmp("FC", Z_STRVAL_P(value), 2) || !strncasecmp("FD", 
Z_STRVAL_P(value), 2))) {
+                                               RETURN_VALIDATION_FAILED
+                                       }
+                               }
                        }
                        break;
        }



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

Reply via email to