diff --git a/core/lib/Core/Models/File.class.php b/core/lib/Core/Models/File.class.php index 981840a..13fabeb 100644 --- a/core/lib/Core/Models/File.class.php +++ b/core/lib/Core/Models/File.class.php @@ -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]);