diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2021-11-28 23:39:50 +0300 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2021-12-03 00:43:38 +0300 |
commit | fc0910cef50f17c231e1290db2c1aa91315b7423 (patch) | |
tree | adcfe32eeaa3efd43b8f435340c5e220a085fde3 | |
parent | f767a684ad0682b9e6f93076d9c8cd0fda0975d4 (diff) |
Fix relative path to assets if /index.php/foo/bar url is used (#8144)
-rw-r--r-- | program/include/rcmail_output_html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php index 6494879a5..00ceca85f 100644 --- a/program/include/rcmail_output_html.php +++ b/program/include/rcmail_output_html.php @@ -188,7 +188,7 @@ EOF; { // set absolute path for assets if /index.php/foo/bar url is used if (empty($path) && !empty($_SERVER['PATH_INFO'])) { - $path = preg_replace('/\/?\?_task=[a-z]+/', '', $this->app->url([], true)); + $path = preg_replace('/\?_task=[a-z]+/', '', $this->app->url([], true)); } if (empty($path)) { |