mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #12119. Changed smart_split to stop splitting on whitespace in quotes. Thanks, emulbreh.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -27,6 +27,8 @@ friends'
|
||||
[u'url', u'search_page', u'words=hello']
|
||||
>>> list(smart_split(u'url search_page words="something else'))
|
||||
[u'url', u'search_page', u'words="something', u'else']
|
||||
>>> list(smart_split("cut:','|cut:' '"))
|
||||
[u"cut:','|cut:' '"]
|
||||
|
||||
### urlquote #############################################################
|
||||
>>> from django.utils.http import urlquote, urlquote_plus
|
||||
|
||||
Reference in New Issue
Block a user