Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2021-11-28 23:39:50 +0300
committerThomas Bruederli <thomas@roundcube.net>2021-12-03 00:43:38 +0300
commitfc0910cef50f17c231e1290db2c1aa91315b7423 (patch)
treeadcfe32eeaa3efd43b8f435340c5e220a085fde3
parentf767a684ad0682b9e6f93076d9c8cd0fda0975d4 (diff)
Fix relative path to assets if /index.php/foo/bar url is used (#8144)
-rw-r--r--program/include/rcmail_output_html.php2
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)) {