[web2py] Re: unicode support for args

2011-10-26 Thread Pawel Jasinski
On Oct 26, 5:25 am, Jonathan Lundell jlund...@pobox.com wrote: On Oct 25, 2011, at 2:06 PM, Pawel Jasinski wrote: hi, thanks! That solved my ~ problem. Unfortunately for my öäü (chars above 128 and below 255 in latin-1) I still need to overcome 2 challenges: 1. re.U must be supplied

[web2py] Re: unicode support for args

2011-10-25 Thread Massimo Di Pierro
The validation is done on purpose. We think that allowing special characters in the path info makes urls less readable and can be cause of directory traversal attacks (~ specifically). Massimo On Oct 25, 6:24 am, Pawel Jasinski pawel.jasin...@gmail.com wrote: hi all, I have discovered that

[web2py] Re: unicode support for args

2011-10-25 Thread Pawel Jasinski
hi, of directory traversal attacks (~ specifically). how exactly? I am talking about arguments and only arguments. I agree that ~ in case of application/controller/method makes no sense In case of static agree 100%, but that is different control path. The arguments are just that, arguments. If

Re: [web2py] Re: unicode support for args

2011-10-25 Thread Jonathan Lundell
On Oct 25, 2011, at 11:57 AM, Pawel Jasinski pawel.jasin...@gmail.com wrote: hi, of directory traversal attacks (~ specifically). how exactly? I am talking about arguments and only arguments. I agree that ~ in case of application/controller/method makes no sense In case of static

[web2py] Re: unicode support for args

2011-10-25 Thread Pawel Jasinski
hi, thanks! That solved my ~ problem. Unfortunately for my öäü (chars above 128 and below 255 in latin-1) I still need to overcome 2 challenges: 1. re.U must be supplied to compile or match to take advantage of unicode interpretation of \w. I could shift compile into the routes.py. Is it

Re: [web2py] Re: unicode support for args

2011-10-25 Thread Jonathan Lundell
On Oct 25, 2011, at 2:06 PM, Pawel Jasinski wrote: hi, thanks! That solved my ~ problem. Unfortunately for my öäü (chars above 128 and below 255 in latin-1) I still need to overcome 2 challenges: 1. re.U must be supplied to compile or match to take advantage of unicode interpretation