[mezzanine-users] Why slug regex use by Mezzanine is .* ?

2015-12-12 Thread sonu kumar
I have found every slug in Mezzanine uses * .**. Just curious why we have this instead of that we could have *[-a-zA-Z0-9]+ or [-\w]+* which will match all required slugs as per my knowledge. .* leads a problem as* /users/(?P.*)/ *this will pass URLs like* users/Alice/hack. *This can be

Re: [mezzanine-users] Why slug regex use by Mezzanine is .* ?

2015-12-12 Thread Eduardo Rivas
Could you elaborate? The only capture group in your example is the username. By inserting a slash, no username would match and the standard 404 page will be displayed. -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from