From 18a0df23fc4b60710ef724f9f4ad273a02c80830 Mon Sep 17 00:00:00 2001
From: svncommit <devs@roundcube.net>
Date: Fri, 05 Jan 2007 10:02:47 -0500
Subject: [PATCH] Fix unquoted HTML attributes (closes #1484190)

---
 program/steps/mail/func.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 83f170d..522a1c2 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1252,6 +1252,7 @@
 // parse link attributes and set correct target
 function rcmail_alter_html_link($in)
   {
+  $in = preg_replace('/=([^("|\s)]+)(\s|$)/', '="\1"', $in);
   $attrib = parse_attrib_string($in);
 
   if (stristr((string)$attrib['href'], 'mailto:'))

--
Gitblit v1.9.1