From f025740b07449ed2727b10f72f94496946c69f68 Mon Sep 17 00:00:00 2001
From: svncommit <devs@roundcube.net>
Date: Mon, 21 Apr 2008 20:18:27 -0400
Subject: [PATCH] fix for attrib strings with embedded quotes

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

diff --git a/program/include/main.inc b/program/include/main.inc
index 2abe704..abd1836 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1483,7 +1483,7 @@
 function parse_attrib_string($str)
   {
   $attrib = array();
-  preg_match_all('/\s*([-_a-z]+)=(["\'])??(?(2)([^"\']+)\2|(\S+?))/Ui', stripslashes($str), $regs, PREG_SET_ORDER);
+  preg_match_all('/\s*([-_a-z]+)=(["\'])??(?(2)([^\2]+)\2|(\S+?))/Ui', stripslashes($str), $regs, PREG_SET_ORDER);
 
   // convert attributes to an associative array (name => value)
   if ($regs)

--
Gitblit v1.9.1