diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-03-26 18:10:58 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-03-26 18:10:58 +0100 |
| commit | d320863878f097b5cbf33ace12e3adb5e02f27e0 (patch) | |
| tree | 69ff64228c0211e709b83fc7d01d82dc10174c29 /django/forms | |
| parent | b9e50e47742f67dcf3c37aad989b350e8255154e (diff) | |
Fixed #22114 -- Stopped adding trailing slashes in URLField.to_python
Thanks coredumperror at gmail.com for the report and Tim Graham
for the review.
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/fields.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/django/forms/fields.py b/django/forms/fields.py index 0ee66a9db3..acff7a54a9 100644 --- a/django/forms/fields.py +++ b/django/forms/fields.py @@ -704,9 +704,6 @@ class URLField(CharField): # Rebuild the url_fields list, since the domain segment may now # contain the path too. url_fields = split_url(urlunsplit(url_fields)) - if not url_fields[2]: - # the path portion may need to be added before query params - url_fields[2] = '/' value = urlunsplit(url_fields) return value |
