MDL-53509 mod_forum: Stop over-escaping quoted variables
authorAndrew Nicols <andrew@nicols.co.uk>
Thu, 17 Mar 2016 00:33:46 +0000 (08:33 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Thu, 17 Mar 2016 00:33:48 +0000 (08:33 +0800)
commit48a9ef9e962088863a8b4bef03223b358943016d
tree54ffce6a69d347da22f062286c5055853b43f0ae
parent7adc7ef14f07746539c3dd85c9d657601078da74
MDL-53509 mod_forum: Stop over-escaping quoted variables

    {{# quote }}<a href=\"foo\">{{/ quote }}

becomes:

    "<a href=\\"foo\\">"

This causes a mustache syntax error.

The quote helper negates the need to escape quotes in normal use, e.g.:

    {{# quote }}<a href="foo">{{/ quote }}

which instead becomes:

    "<a href=\"foo\">"
mod/forum/templates/forum_post_emaildigestbasic_htmlemail.mustache