[Html-widget] Square braces in HTML::Widget::Result

Carl Franks fireartist at gmail.com
Fri Sep 15 11:17:12 CEST 2006


Thanks,
This is fixed in svn version 72.

Carl


On 14/09/06, Ted Carnahan <ted at tedcarnahan.com> wrote:
> I posted this little patch for HTML::Widget::Result a few weeks ago and
> haven't heard back.  Just thought I'd repost it for your consideration.
> This fixes a bug in valid when the form item name contains regexy
> characters (the chief example is square braces).
>
> - Ted Carnahan
>
>
>
> Index: Widget/Result.pm
> ===================================================================
> --- Widget/Result.pm    (revision 70)
> +++ Widget/Result.pm    (working copy)
> @@ -366,7 +366,7 @@
>      }
>      my @valid = keys %valid;
>      return @valid unless $name;
> -    return 1 if grep { /$name/ } @valid;
> +    return 1 if grep { /\Q$name\E/ } @valid;
>      return 0;
>  }
>
>
>
> _______________________________________________
> Html-widget mailing list
> Html-widget at lists.rawmode.org
> http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget
>
>
>



More information about the Html-widget mailing list