mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-08 10:59:03 +00:00
fix potential XSS attack in many fields of settings
This commit is contained in:
parent
698c82b806
commit
ae8b383def
|
@ -15,6 +15,7 @@
|
||||||
- show how many users have to review/approve a document and how many did
|
- show how many users have to review/approve a document and how many did
|
||||||
already (in menu task list and document list)
|
already (in menu task list and document list)
|
||||||
- break long original file names on viewDocument page
|
- break long original file names on viewDocument page
|
||||||
|
- fix potential XSS attack in many fields of settings
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 5.1.40
|
Changes in version 5.1.40
|
||||||
|
|
|
@ -151,7 +151,7 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
|
||||||
$value = $settings->{"_".$name};
|
$value = $settings->{"_".$name};
|
||||||
echo " <td>";
|
echo " <td>";
|
||||||
if($this->isVisible($name))
|
if($this->isVisible($name))
|
||||||
$this->showTextField($name, $value, ($type=='password' || $type=='textarea' ? $type : ''), $placeholder ? $placeholder : getMLText($title."_placeholder", [], ""));
|
$this->showTextField($name, htmlspecialchars($value), ($type=='password' || $type=='textarea' ? $type : ''), $placeholder ? $placeholder : getMLText($title."_placeholder", [], ""));
|
||||||
else
|
else
|
||||||
echo getMLText('settings_conf_field_not_editable');
|
echo getMLText('settings_conf_field_not_editable');
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user