| Summary | regex compile error with pcre 8.13 |
| Queue | Horde Framework Packages |
| Queue Version | Git master |
| Type | Bug |
| State | Resolved |
| Priority | 2. Medium |
| Owners | slusarz (at) horde (dot) org |
| Requester | jr (at) yaina (dot) de |
| Created | 12/1/11 (5244 days ago) |
| Due | |
| Updated | 12/2/11 (5243 days ago) |
| Assigned | |
| Resolved | 12/2/11 (5243 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | Yes |
State ⇒ Resolved
Priority ⇒ 2. Medium
[mms] Fix unnecessary use of POSIX collating element in Linkurls
filter (
Bug #10828; jr@yaina.de).2 files changed, 4 insertions(+), 4 deletions(-)
http://git.horde.org/horde-git/-/commit/3e02739040e526d6a9213d5696026e60d401840e
Priority ⇒ 3. High
New Attachment: horde4-pcre813-regex-fix.diff
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ regex compile error with pcre 8.13
Type ⇒ Bug
State ⇒ Unconfirmed
content of e-mails displayed anymore.
The Horde log shows the error »PHP ERROR: preg_replace_callback():
Compilation failed: POSIX collating elements are not supported at
offset 225«
I'm running Horde_Text_Filter-1.1.1 and imp-5.0.15.
The cause are two occurrences of »[.]« the regex defined in
ininitializeRegex() in Linkurls.php. The term »[.« gets interpreted
as the start of a POSIX collating (multi-character sequence).
Apparently the PCRE parser does not check if a collate actually occurs
within a bracket expression first. Thus, the period either needs to
get escaped with a backslash or (better) the whole one-element bracket
expression replaced with just »\.«
Please excuse me if this is a known issue, I haven't seen it discussed
it in the bugtracker or fixed in Git so far.