6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/16/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7031] Colons within quoted parameter values are not handled correctly
*
Your Email Address
*
Spam protection
Enter the letters below:
. ..__ ._. __ .___ |_/ [__) | / `[__ | \| _|_\__.[___
Comment
> It's far more complicated than that unfortunately, because the same > regex must also parse vCalendar 1.0 properties which are escaped > differently. Those only require semicolons in parameter values to be > escaped by a preceding backslash. > > > > I came up with the following so far: > > > > $name_re = '[-a-zA-Z0-9]+'; > > $param_text_re = '[^";:,]*'; > > $quoted_string_re = '"[^"]*"'; > > $param_value_re = $param_text_re . '|' . $quoted_string_re; > > $param_re = $name_re . '=' . $param_value_re; > > $old_param_re = '(?:' . $name_re . '=)?(?:[^;]|(?<=\\\\);)*'; > > > > And then run the preg_match like so: > > > > preg_match('/(' . $name_re . ')(;(?:' . $param_re . '|' . > $old_param_re . '))*:([^\r\n]*)[\r\n]*/', > > $attribute, $parts); > > > > This doesn't work unfortunately either, because the regex for the old > format is too greedy. If using an ungreedy modifier, it becomes too > ungreedy. > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers