sas             Mon Sep 30 00:56:38 2002 EDT

  Modified files:              
    /php4/ext/standard  url_scanner_ex.re 
  Log:
  Fix my stupid mistake which broke <form> handling 
  
  
Index: php4/ext/standard/url_scanner_ex.re
diff -u php4/ext/standard/url_scanner_ex.re:1.62 
php4/ext/standard/url_scanner_ex.re:1.63
--- php4/ext/standard/url_scanner_ex.re:1.62    Wed Sep 25 08:15:22 2002
+++ php4/ext/standard/url_scanner_ex.re Mon Sep 30 00:56:38 2002
@@ -199,16 +199,16 @@
 
        if (ctx->form_app.len > 0) {
                switch (ctx->tag.len) {
-               
-                       case sizeof("form")-1:
-                               if (strcasecmp(ctx->tag.c, "form") == 0)
-                                       doit = 1;
-                               break;
 
-                       case sizeof("fieldset")-1:
-                               if (strcasecmp(ctx->tag.c, "fieldset") == 0)
-                                       doit = 1;
-                               break;
+#define RECOGNIZE(x) do {      \
+       case sizeof(x)-1: \
+               if (strncasecmp(ctx->tag.c, x, sizeof(x)-1) == 0) \
+                       doit = 1; \
+               break; \
+} while (0)
+               
+                       RECOGNIZE("form");
+                       RECOGNIZE("fieldset");
                }
 
                if (doit)



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

Reply via email to