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 @@