#10675: escapejs doesn't handle U+2028 LINE SEPARATOR
-----------------------------+----------------------------------------------
 Reporter:  olau             |       Owner:  nobody    
   Status:  new              |   Milestone:            
Component:  Template system  |     Version:  1.0       
 Keywords:                   |       Stage:  Unreviewed
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 I'm doing something like this:

 {{{
 <script>
 var myvar = "{{ somestring|escapesj|safe }}";
 </script>
 }}}

 Now one of my users somehow managed to put in a U+2028 character in
 somestring (darn Mac freak) which upon investigation turns out be "LINE
 SEPARATOR - may be used to represent this semantic unambiguously". This
 makes Firefox barf with a SyntaxError: unterminated string literal which
 breaks the script. So it seems escapejs should handle this character, too.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10675>
Django <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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to