diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-06-06 12:19:03 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-06-06 12:19:03 +0200 |
commit | 76f4f7970d052b9f5c0de82f99024b9ab0100294 (patch) | |
tree | 972c858403a8704c73043458bd1b453b220ef936 | |
parent | 61ccdfcfbb943abb75d3245f6c70b0c3c0b1b34c (diff) |
Fix resolving /this/ in file_callback()
-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 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] == '/') { |