Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
latoilescoute-dev
scoodle
Commits
02229c67
Unverified
Commit
02229c67
authored
Jul 19, 2021
by
Thomas Citharel
Browse files
Fix an XSS in the result graph
Signed-off-by:
Thomas Citharel
<
tcit@tcit.fr
>
parent
e0028dc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/inc/smarty.php
View file @
02229c67
...
...
@@ -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
);
}
...
...
tpl/part/vote_table_classic.tpl
View file @
02229c67
...
...
@@ -282,7 +282,7 @@
});
var
cols
=
[
{
foreach
$slots
as
$id
=>
$slot
}
$
(
'
<div/>
'
).
html
(
'
{
$slot
->
title
|
markdown
:
true
}
'
).
text
()
,
"
{
$slot
->
title
|
markdown
:
true
|
addslashes
}
"
,
{/
foreach
}
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment