summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-07-24 08:29:24 +0000
committerthomascube <thomas@roundcube.net>2009-07-24 08:29:24 +0000
commitf78dab1c80c27cd64b5e1f967da20fd43c17006d (patch)
treef1807acc4a6b47e26d5b097df152cb57defa21a4
parentefbe9ea781154c32ff8913eae95965c2f2ae8d9a (diff)
Allow some recursion in reder_page hook (#1485977)
-rwxr-xr-xprogram/include/rcube_template.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index d4c3464db..ecb5a8942 100755
--- a/program/include/rcube_template.php
+++ b/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;
}