https://bugzilla.wikimedia.org/show_bug.cgi?id=13288

Conrad Irwin <conrad.ir...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |conrad.ir...@gmail.com

--- Comment #6 from Conrad Irwin <conrad.ir...@gmail.com> 2010-02-13 16:28:28 
UTC ---
{{PAGENAMEE:{{PAGENAME:&}}}} -> %26        (RIGHT) 
{{URLENCODE:{{PAGENAME:&}}}} -> %26amp%31  (WRONG)
{{PAGENAMEE:&amp;}}    -> %26              (WRONG - ?)
{{URLENCODE:&amp;}}    -> %26amp%31        (RIGHT)

I put the ? there because [[&amp;]] creates a link to [[&]] (perhaps also
wrong) and http://en.wikipedia.org/wiki/%26amp; is an server error.


I think the solution would be to have {{PAGENAME}} et.al. return a
"text-needs-escape" object of some kind, parser functions could then request
that they get unescaped input as a flag, the parser would then escape the text
when the escaping is neeeded.

The Django template engine deals with this issue very nicely, maybe we can copy
some of their ideas.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to