From 76f4f7970d052b9f5c0de82f99024b9ab0100294 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 6 Jun 2013 12:19:03 +0200 Subject: Fix resolving /this/ in file_callback() --- program/include/rcmail_output_html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php index aaec7f95e..29a86b9f7 100644 --- a/program/include/rcmail_output_html.php +++ b/program/include/rcmail_output_html.php @@ -656,7 +656,7 @@ class rcmail_output_html extends rcmail_output protected function file_callback($matches) { $file = $matches[3]; - $file[0] = preg_replace('!^/this/!', '/', $file[0]); + $file = preg_replace('!^/this/!', '/', $file); // correct absolute paths if ($file[0] == '/') { -- cgit v1.2.3