Merge branch 'fix-graph-xss' into 'v1.1.x'
Fix an XSS in the result graph See merge request framasoft/framadate/framadate!493
This commit is contained in:
commit
6e40f1cf02
@ -73,6 +73,10 @@ function smarty_modifier_addslashes_single_quote($string) {
|
|||||||
return addcslashes($string, '\\\'');
|
return addcslashes($string, '\\\'');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function smarty_modifier_addslashes($string) {
|
||||||
|
return addslashes($string);
|
||||||
|
}
|
||||||
|
|
||||||
function smarty_modifier_html($html) {
|
function smarty_modifier_html($html) {
|
||||||
return Utils::htmlEscape($html);
|
return Utils::htmlEscape($html);
|
||||||
}
|
}
|
||||||
|
@ -282,7 +282,7 @@
|
|||||||
});
|
});
|
||||||
var cols = [
|
var cols = [
|
||||||
{foreach $slots as $id=>$slot}
|
{foreach $slots as $id=>$slot}
|
||||||
$('<div/>').html('{$slot->title|markdown:true}').text(),
|
"{$slot->title|markdown:true|addslashes}",
|
||||||
{/foreach}
|
{/foreach}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user