Skip to content
Snippets Groups Projects
Commit 3c0ad825 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #1163 from KyraD/patch-2


Fix Additional XSS Vulnerability In "tpl.inc.php"

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 5a85fddb c3e2ce4f
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ $tpl=$msgtemplates[$selected];
<input type="hidden" name="draft_id" value=""/>
<textarea name="body" cols="21" rows="16" style="width:98%;" wrap="soft"
data-toolbar-external="#toolbar"
class="richtext draft" data-draft-namespace="tpl.<?php echo $selected; ?>"
class="richtext draft" data-draft-namespace="tpl.<?php echo Format::htmlchars($selected); ?>"
data-draft-object-id="<?php echo $tpl_id; ?>"><?php echo $info['body']; ?></textarea>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment