From 6af59315359fca0ede749be10e8e603324e1fcdd Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Thu, 22 Dec 2011 13:01:44 -0500
Subject: [PATCH] Allow (escaped) html tags in roundcube special tag attributes

---
 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 f650803..95f92a5 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -661,7 +661,7 @@
      */
     private function parse_xml($input)
     {
-        return preg_replace_callback('/<roundcube:([-_a-z]+)\s+([^>]+)>/Ui', array($this, 'xml_command'), $input);
+        return preg_replace_callback('/<roundcube:([-_a-z]+)\s+((?:[^>]|\\\\>)+)(?<!\\\\)>/Ui', array($this, 'xml_command'), $input);
     }
 
 

--
Gitblit v1.9.1