protect against wrong character

This commit is contained in:
sparkyx 2025-12-30 15:15:44 +01:00
parent 3cfceee3b0
commit 40d94bb815
2 changed files with 14 additions and 13 deletions

View file

@ -190,6 +190,7 @@ class Document
chdir($dirname);
$filename=($p_filename == "")?$row['md_filename']:$p_filename;
$filename= sanitize_filename($filename);
$exp=$this->db->lo_export($row['md_lob'], $dirname.DIRECTORY_SEPARATOR.$filename);
if ($exp===false)
{