From 15eeeb85ef679853a911e0945ff7d9eec63e9aa3 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Mon, 28 Oct 2024 16:34:19 +0300 Subject: [PATCH] =?utf8?q?[ERP-231]=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?utf8?q?=D1=8F=D0=B5=D1=82=20=D1=81=D0=BB=D0=B5=D1=88=20=D0=B2=20=D0=BA?= =?utf8?q?=D0=BE=D1=80=D0=B5=D0=BD=D1=8C=20=D0=BF=D1=83=D1=82=D0=B8=20?= =?utf8?q?=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=80=D0=B8=D1=81=D0=BE=D0=B5=D0=B4?= =?utf8?q?=D0=B8=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BA=20=D0=B0=D0=BB?= =?utf8?q?=D0=B8=D0=B0=D1=81=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/actions/files/DownloadAction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/actions/files/DownloadAction.php b/erp24/actions/files/DownloadAction.php index 8084e936..9f769eb3 100755 --- a/erp24/actions/files/DownloadAction.php +++ b/erp24/actions/files/DownloadAction.php @@ -4,13 +4,13 @@ namespace yii_app\actions\files; use Yii; use yii\base\Action; +use yii_app\services\FileService; class DownloadAction extends Action { public function run($url) { - $filepath = \Yii::getalias('@yii_app') . $url; -// $filepath = \Yii::getalias('@webroot') . DIRECTORY_SEPARATOR . $url; + $filepath = \Yii::getalias('@yii_app') . FileService::padWithSlash($url); return \Yii::$app->response->sendFile($filepath); } } \ No newline at end of file -- 2.39.5