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\">"
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
<div>
|
||||
<a target="_blank" href="{{{ permalink }}}">{{{ subject }}}</a>
|
||||
{{# str }} bynameondate, forum, {
|
||||
"name": {{# quote }}<a target=\"_blank\" href=\"{{{ authorlink }}}\">{{ authorfullname }}</a>{{/ quote }},
|
||||
"name": {{# quote }}<a target="_blank" href="{{{ authorlink }}}">{{ authorfullname }}</a>{{/ quote }},
|
||||
"date": {{# quote }}{{ postdate }}{{/ quote }}
|
||||
} {{/ str }}
|
||||
</div>
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
</div>
|
||||
<div class="author">
|
||||
{{# str }} bynameondate, forum, {
|
||||
"name": {{# quote }}<a target=\"_blank\" href=\"{{{ authorlink }}}\">{{ authorfullname }}</a>{{/ quote }},
|
||||
"name": {{# quote }}<a target="_blank" href="{{{ authorlink }}}">{{ authorfullname }}</a>{{/ quote }},
|
||||
"date": {{# quote }}{{ postdate }}{{/ quote }}
|
||||
} {{/ str }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user