Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2025-07-30 09:07:23 +02:00
commit becde0b8f7
2 changed files with 2 additions and 2 deletions

View File

@ -349,7 +349,7 @@
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 - fix potential XSS attack in many fields of settings
- allow to edit original filename - allow to edit original filename, check filename for problematic chars
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
Changes in version 5.1.40 Changes in version 5.1.40

View File

@ -783,7 +783,7 @@ $(document).ready( function() {
} else { } else {
print htmlspecialchars($latestContent->getOriginalFileName()); print htmlspecialchars($latestContent->getOriginalFileName());
} }
if(!$latestContent->checkOriginalFileName()) { if($user->isAdmin() && !$latestContent->checkOriginalFileName()) {
echo " <i class=\"fa fa-exclamation-triangle\" title=\"".getMLText('problematic_filename')."\"></i> "; echo " <i class=\"fa fa-exclamation-triangle\" title=\"".getMLText('problematic_filename')."\"></i> ";
} }
print "</li>\n"; print "</li>\n";