summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-06-06 12:19:03 +0200
committerAleksander Machniak <alec@alec.pl>2013-06-06 12:19:03 +0200
commit76f4f7970d052b9f5c0de82f99024b9ab0100294 (patch)
tree972c858403a8704c73043458bd1b453b220ef936
parent61ccdfcfbb943abb75d3245f6c70b0c3c0b1b34c (diff)
Fix resolving /this/ in file_callback()
-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 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] == '/') {