summaryrefslogtreecommitdiff
path: root/program/include/rcmail.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-12-22 19:17:47 +0000
committeralecpl <alec@alec.pl>2010-12-22 19:17:47 +0000
commit7c9850da45f207824dc6d2f672de6caa25e400f5 (patch)
tree4faf47187b6d551a926efbb7a2742620a05715a6 /program/include/rcmail.php
parentb0918484878c91b4c1ecc3783f95e05bc8a53262 (diff)
- Improve handling of whitespace characters after closing PHP tag in localization and config files
Diffstat (limited to 'program/include/rcmail.php')
-rw-r--r--program/include/rcmail.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 0eecd8ddb..f72b33e95 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -929,6 +929,9 @@ class rcmail
if (empty($this->texts) || $lang != $_SESSION['language']) {
$this->texts = array();
+ // handle empty lines after closing PHP tag in localization files
+ ob_start();
+
// get english labels (these should be complete)
@include(INSTALL_PATH . 'program/localization/en_US/labels.inc');
@include(INSTALL_PATH . 'program/localization/en_US/messages.inc');
@@ -949,6 +952,8 @@ class rcmail
$this->texts = array_merge($this->texts, $messages);
}
+ ob_end_clean();
+
$_SESSION['language'] = $lang;
}