Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #24013 -- Fixed escaping of reverse prefix. #4272

Closed
wants to merge 2 commits into from

Conversation

bpeschier
Copy link
Contributor

Prefix was treated as a part of the url pattern, which it is not.
Improved tests to conform with RFC 3986 which allows certain
characters in path segments without being escaped.

@MarkusH
Copy link
Member

MarkusH commented Mar 8, 2015

buildbot, test this please.

@@ -225,6 +229,18 @@ def test_patterns_reported(self):
# exception
self.fail("Expected a NoReverseMatch, but none occurred.")

def test_script_name_escaping(self):
from django.core.urlresolvers import get_script_prefix, set_script_prefix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this import go at the top of the file?

bpeschier and others added 2 commits March 12, 2015 17:19
Prefix was treated as a part of the url pattern, which it is not.
Improved tests to conform with RFC 3986 which allows certain
characters in path segments without being escaped.
@bpeschier
Copy link
Contributor Author

Other tests were using prefix-kwarg of reverse, so I used that one instead.

@timgraham
Copy link
Member

merged in c9f1a12 and a23ea39, thanks!

@timgraham timgraham closed this Mar 12, 2015
@bpeschier bpeschier deleted the ticket_24013 branch March 19, 2015 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants