[Zope-dev] Re: [Zope-Checkins] CVS: Zope/lib/python/TAL - TALInterpreter.py:1.69.6.10

Florent Guillaume fg@nuxeo.com
Sun, 22 Dec 2002 20:01:05 +0100


What prompted this? What does it fix?
I don't see that quotes need escaping here.
Also, there should be a unit test for it.
(And if it's a fix it should be in HEAD too.)

Florent

In article <200212180033.gBI0Xh515285@cvs.baymountain.com> you write:
> Modified Files:
>       Tag: Zope-2_6-branch
> 	TALInterpreter.py 
> Log Message:
> Escape quotes correctly
> 
> 
> === Zope/lib/python/TAL/TALInterpreter.py 1.69.6.9 => 1.69.6.10 ===
> --- Zope/lib/python/TAL/TALInterpreter.py:1.69.6.9	Wed Oct  9 10:37:38 2002
> +++ Zope/lib/python/TAL/TALInterpreter.py	Tue Dec 17 19:33:43 2002
> @@ -486,7 +486,7 @@
>          if text is self.Default:
>              self.interpret(stuff[1])
>              return
> -        s = escape(text)
> +        s = escape(text, 1)
>          self._stream_write(s)
>          i = s.rfind('\n')
>          if i < 0:


-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com