#3733: django.utils.text.smart_split() does not properly handle unmatched quotes
-------------------------------------+--------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: Core framework
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 1
-------------------------------------+--------------------------------------
django.utils.text.smart_split() does not properly handle unmatched quotes.
smart_split() eats up last character of the word that begins with an
unmatched quote and that quote character itself:
{{{
>> text.smart_split("one 'two three")
['one', 'tw', 'three']
}}}
Of course unmatched quote in a tag argument string most probably is an
error. But result produced by smart_split() ({{{"'two" -> "tw"}}}) doesn't
leave chances to notice or detect this error until actual use at render
time (and may be even further).
Also smart_split()'s doctest still produce syntax error (in spite of
#3035).
--
Ticket URL: <http://code.djangoproject.com/ticket/3733>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---