mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-01-23 02:14:06 +00:00
Fix an XSS in the result graph
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
e0028dc813
commit
02229c671b
2 changed files with 5 additions and 1 deletions
|
|
@ -73,6 +73,10 @@ function smarty_modifier_addslashes_single_quote($string) {
|
|||
return addcslashes($string, '\\\'');
|
||||
}
|
||||
|
||||
function smarty_modifier_addslashes($string) {
|
||||
return addslashes($string);
|
||||
}
|
||||
|
||||
function smarty_modifier_html($html) {
|
||||
return Utils::htmlEscape($html);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@
|
|||
});
|
||||
var cols = [
|
||||
{foreach $slots as $id=>$slot}
|
||||
$('<div/>').html('{$slot->title|markdown:true}').text(),
|
||||
"{$slot->title|markdown:true|addslashes}",
|
||||
{/foreach}
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue