Ticket #2977: django-plus-sign-fix.patch
| File django-plus-sign-fix.patch, 0.6 kB (added by andresj, 10 months ago) |
|---|
-
django/core/urlresolvers.py
old new 86 86 """ 87 87 # TODO: Handle nested parenthesis in the following regex. 88 88 result = re.sub(r'\(([^)]+)\)', MatchChecker(args, kwargs), regex.pattern) 89 return result.replace('^', '').replace('$', '') 89 # TODO: Handle other special characters. 90 return result.replace('^', '').replace('$', '').replace('\+', '+').replace('\.', '.') 90 91 91 92 class MatchChecker(object): 92 93 "Class used in reverse RegexURLPattern lookup."
