Skip to content

Commit 184069a

Browse files
committed
Use encodeJS to output a variable as a JavaScript string.
1 parent 797f5a3 commit 184069a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.woltlab.wcf/templates/shared_pollOptionsFormField.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
var pollEditor = new UiPollEditor(
1717
DomUtil.identify(DomTraverse.childByTag(elById('{unsafe:$field->getPrefixedId()|encodeJS}Container'), 'DD')),
1818
[ {implode from=$field->getValue() item=pollOption}{ optionID: {$pollOption[optionID]}, optionValue: '{$pollOption[optionValue]|encodeJS}' }{/implode} ],
19-
'{@$field->getPrefixedWysiwygId()}',
19+
'{unsafe:$field->getPrefixedWysiwygId()|encodeJS}',
2020
{
2121
isAjax: {if $field->getDocument()->isAjax()}true{else}false{/if},
2222
maxOptions: {POLL_MAX_OPTIONS}

0 commit comments

Comments
 (0)