summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-07-24 08:29:24 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-07-24 08:29:24 +0000
commit13f89f8e0f62dae3f3c1141d05ce49f1ffe16ffd (patch)
treeb5e6c7712ef02ce7b09d6925e99ef7c6c67d495c
parente20f96908380ea036e154f23266f76ca18bb0f53 (diff)
Allow some recursion in reder_page hook (#1485977)
git-svn-id: https://svn.roundcube.net/trunk@2791 208e9e7b-5314-0410-a742-e7e81cd9613c
-rwxr-xr-xroundcubemail/program/include/rcube_template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_template.php b/roundcubemail/program/include/rcube_template.php
index d4c3464db..ecb5a8942 100755
--- a/roundcubemail/program/include/rcube_template.php
+++ b/roundcubemail/program/include/rcube_template.php
@@ -289,7 +289,7 @@ class rcube_template extends rcube_html_page
{
if ($templ != 'iframe') {
// prevent from endless loops
- if ($this->app->plugins->is_processing('render_page')) {
+ if ($exit != 'recur' && $this->app->plugins->is_processing('render_page')) {
raise_error(array('code' => 505, 'type' => 'php', 'message' => 'Recursion alert: ignoring output->send()'), true, false);
return;
}