From cceb04a9c3641be4d7fb48f196cd0392d22eb991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=93=D1=80=D0=B8=D0=BD?= =?UTF-8?q?=D1=8C=D0=BA=D0=BE?= Date: Mon, 4 Sep 2023 14:36:29 +0000 Subject: [PATCH] =?UTF-8?q?fix=20=D0=BE=D0=BF=D0=B5=D1=87=D0=B0=D1=82?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Core/Models/File.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);