From 6ceb59b9f13da52111a201e5452ae36a881b5058 Mon Sep 17 00:00:00 2001 From: Karson Date: Fri, 6 Jun 2025 23:45:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=99=84=E4=BB=B6=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=9B=BE=E7=89=87=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化referrer默认值 --- application/admin/controller/general/Attachment.php | 2 +- application/admin/view/common/meta.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/admin/controller/general/Attachment.php b/application/admin/controller/general/Attachment.php index 7c4cdfc1..44939219 100644 --- a/application/admin/controller/general/Attachment.php +++ b/application/admin/controller/general/Attachment.php @@ -65,7 +65,7 @@ class Attachment extends Backend ->order($sort, $order) ->paginate($limit); - $cdnurl = preg_replace("/\/(\w+)\.php$/i", '', $this->request->root()); + $cdnurl = preg_replace("/\/(\w+)\.php$/i", '', $this->request->root(true)); foreach ($list as $k => &$v) { $v['fullurl'] = ($v['storage'] == 'local' ? $cdnurl : $this->view->config['upload']['cdnurl']) . $v['url']; } diff --git a/application/admin/view/common/meta.html b/application/admin/view/common/meta.html index 12b3c0e5..f6c276c3 100644 --- a/application/admin/view/common/meta.html +++ b/application/admin/view/common/meta.html @@ -2,7 +2,7 @@ {$title|default=''} - +