A configurable default regex would be useful, so can override it in the struts.xml eg [a-zA-Z]* >> ^[A-Za-z0-9]{1,25}$ etc.....
Also, not too many changes needed! Cheers Greg. On 14 February 2016 at 14:23, Lukasz Lenart <lukaszlen...@apache.org> wrote: > 2016-02-11 12:02 GMT+01:00 Greg Huber <gregh3...@gmail.com>: > > Can there be two levels on the SMI? > > > > If DMI is on and SMI is in relaxed-strict mode (false) we can leave the > > > > {1} and prefix{0}suffix in so it works. > > > > although it would be better to have some kind of regex ie > > regex:([A-Z-a-z]*) for safety plus a max length! > > > > Then if SMI is in strict mode (true) remove {1} and prefix{0}suffix so it > > will then fall back on the global/allowed-methods. > > > > Just a thought. > > I thought a lot about your idea and it looks reasonable. With relaxed > SMI we can translate {0} into /[a-zA-Z]*/, where when SMI is set to > true, just drop it and based on what was defined as <allowed-method>s > > > Regards > -- > Ćukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org > For additional commands, e-mail: dev-h...@struts.apache.org > >