django.utils.text.smart_split() does not handle multiple quoted strings joined by non-whitespace characters properly
|Reported by:||emulbreh||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
>>> from django.utils.text import smart_split >>> list(smart_split("cut:','|cut:' '")) [u"cut:','|cut:'", u"'"]
This is not a duplicate of #8902 or #10001 (as those have been fixed in r10462).
It might be considered a duplicate of #6271, but the scope of that ticket is "fix all template tags" while this ticket should just be about a particular smart_split() bug.
I'll attach a patch that only modifies the regexp.
Change History (6)
Changed 5 years ago by emulbreh
comment:1 Changed 5 years ago by russellm
- milestone set to 1.2
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
comment:3 Changed 5 years ago by jkocherhans
- Resolution set to fixed
- Status changed from new to closed