spaces in username not escaped when using $U
|Reported by:||robspassky||Owned by:||John Hampton|
I'm setting a trac where each user can have their own blog, so I use the $U in the blog page name. But I also have users with spaces in their names, and they were ending making invalid pages.
I fixed it by putting the following into new_blog.py:
"from urllib import quote"
and around line 140 (right before "if req.method == 'POST'"), I put:
"pagename = quote(pagename)"
That seemed to resolve it.
This is for 0.10.