[html-formfu] Policy on what to include?

Andreas Marienborg omega at palle.net
Thu Mar 27 10:25:59 GMT 2008


On Mar 27, 2008, at 11:15 AM, Zbigniew Lukasiak wrote:

> On Wed, Mar 26, 2008 at 2:41 PM, Andreas Marienborg  
> <omega at palle.net> wrote:
>> In the course of converting two HTML::Widget apps to HTML::FormFu, I
>> have written some custom filters, elements etc, and I was wondering  
>> if
>> I should commit those back, or if they are too spesific, and would
>> just clutter things up.
>>
>> HTML::FormFu::Element::Select::Country  - A dropdown with a RFC-based
>> language list (using Locales::Country)
>> HTML::FormFu::Filter::Prepend - Prepend a string unless its already
>> there (I use it for a url-field, adding http:// automaticly)
>
> After some more thinking on the subject - this would not work if
> someone entered 'HTTP://...'.  Maybe what is really needed is some
> canonisation of the entered URL.
>
Could make the regexp case insensitive, thanks for the tip :)

But I agree that perhaps a more general URI-washing Filter might be in  
order

- andreas




More information about the HTML-FormFu mailing list