From f78dab1c80c27cd64b5e1f967da20fd43c17006d Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 24 Jul 2009 04:29:24 -0400
Subject: [PATCH] Allow some recursion in reder_page hook (#1485977)

---
 program/include/rcube_template.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index d4c3464..ecb5a89 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -289,7 +289,7 @@
     {
         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;
             }

--
Gitblit v1.9.1