Fix parameter parser again

This commit is contained in:
Jörg Lehrke 2010-05-19 07:02:08 +00:00
parent 32678401e8
commit ff9e241961

View File

@ -635,7 +635,7 @@ class Horde_iCalendar {
// Parse parameters.
if (!empty($parts[2])) {
preg_match_all('/;(([^;=]*)(=((?:[^;\\\]*(?:\\\.)?)*))?)/', $parts[2], $param_parts);
preg_match_all('/;(([^;=]*)(=("[^"]*"|(?:[^;\\\]*(?:\\\.)?)*))?)/', $parts[2], $param_parts);
foreach ($param_parts[2] as $key => $paramName) {
$paramName = String::upper($paramName);
$paramValue = $param_parts[4][$key];