fix опечатки

This commit is contained in:
rsgrinko committed 2023-09-04 14:36:29 +00:00
1 parent 1fa7ff7949
commit cceb04a9c3
1 file changed
+1 -1
+1 -1
View File
@@ -204,7 +204,7 @@
throw new CoreException('Не удалось скопировать файл', CoreException::ERROR_FILE_COPY);
}
}
$this->name = mysql_escape_string(htmlspecialchars(striptags(trim($fileName))));
$this->name = htmlspecialchars(strip_tags(trim($fileName)));
$this->path = self::FOLDER . '/' . $storageFileName;
$this->id = $this->DB->addItem(self::TABLE, ['name' => $this->name, 'path' => $this->path]);