struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Huber <gregh3...@gmail.com>
Subject Re: URL validation and capitals
Date Thu, 28 Jul 2016 10:48:25 GMT
Ok, forgot about this one,  WW-4671
<https://issues.apache.org/jira/browse/WW-4671>

May be it would be easier to lowercase the url to start rather than change
the rather complex regex ?

Cheers.


On 28 July 2016 at 10:47, Lukasz Lenart <lukaszlenart@apache.org> wrote:

> 2016-05-09 8:38 GMT+02:00 Greg Huber <gregh3269@gmail.com>:
> > A while back I though I read a fix on capitals on the url validator.  It
> > now seems to be blacking them again.
> >
> > http://www.appache.org/TEST
> >
> > I do have some URL's with capitals so it might have worked at some time?
>
> Yeah, looks like the RegEx check is case-sensitive
>
> https://github.com/apache/struts/blob/master/core/src/main/java/com/opensymphony/xwork2/validator/validators/URLValidator.java#L58
>
> Can you register a ticket?
>
>
> Regards
> --
> Ɓukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message