On Wed, Nov 11, 2009 at 5:15 PM, Jonathan Lundell <jlund...@pobox.com> wrote: > > On Nov 11, 2009, at 2:32 AM, Frederik Wagner wrote: > >> I already filed it as a bug some days ago, but should have ask here >> before. Could it be, that the IS_IPV4 provider validates erroneous >> IPv4's? >> >> Reproduction in the shell: >> 1. type: >> a=IS_IPV4() >> 2. type e.g.: >> a('123.123') >> which gives a validated output ('123.123', None), also an IP like >> '123.1123' is valid! >> I would have expect to see a ('123.123', 'enter valid IPv4 address'). >> >> I'm using web2py 1.72.3 (on Linux) > > There's a bug in the regex. At the very least, the period needs to be escaped > (\.).
perfect, thanks again... > > Massimo, if you want to make that patch, go ahead. I'll make up a set of > doctests that also test the min/max conditions and get them to you later. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---