summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2008-04-22 00:18:27 +0000
committersvncommit <devs@roundcube.net>2008-04-22 00:18:27 +0000
commitf025740b07449ed2727b10f72f94496946c69f68 (patch)
treefbe28f9d81b994630cb24761fe11a694afb7a14b
parent653242c6634061f028b48ca03b630d28f7a902f7 (diff)
fix for attrib strings with embedded quotes
-rw-r--r--program/include/main.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 2abe70438..abd183611 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1483,7 +1483,7 @@ function create_attrib_string($attrib, $allowed_attribs=array('id', 'class', 'st
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)