URL mapping regex don't match newlines
Bug #257187 reported by
Andrew Trusty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
web.py |
Confirmed
|
Medium
|
Anand Chitipothu |
Bug Description
I'm using some crazy urls that have stuff like newlines in them. These urls can't be mapped in webpy using a regex with a dot because I can't specify the regex flag re.DOTALL.
My quick fix for 0,23 was to set this flag to the regex compilation on line 333 of utils.py. It looks like the dev version might require more work with the _match function in application.py
Changed in webpy: | |
milestone: | none → 0.35 |
Changed in webpy: | |
milestone: | 0.35 → 0.31 |
Changed in webpy: | |
milestone: | 0.32 → 0.33 |
Changed in webpy: | |
milestone: | 0.35 → 0.34 |
Changed in webpy: | |
milestone: | 0.34 → 0.35 |
To post a comment you must log in.
Did things actually work once you added re.DOTALL? I would have
thought any newlines would have to be encoded in the URL...