Commit a7d0b981 authored by Jérôme Jutteau's avatar Jérôme Jutteau

[BUGFIX] Fix XSS in admin pannel

Signed-off-by: Jérôme Jutteau's avatarJerome Jutteau <mojo@couak.net>
parent 9cb2631b
......@@ -553,13 +553,13 @@ function jirafeau_admin_list($name, $file_hash, $link_hash)
{
echo '<fieldset><legend>';
if (!empty($name)) {
echo t('FILENAME') . ": $name ";
echo t('FILENAME') . ": " . jirafeau_escape($name);
}
if (!empty($file_hash)) {
echo t('FILE') . ": $file_hash ";
echo t('FILE') . ": " . jirafeau_escape($file_hash);
}
if (!empty($link_hash)) {
echo t('LINK') . ": $link_hash ";
echo t('LINK') . ": " . jirafeau_escape($link_hash);
}
if (empty($name) && empty($file_hash) && empty($link_hash)) {
echo t('LS_FILES');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment