6.0.0-beta1
7/20/25

[#10828] regex compile error with pcre 8.13
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/01/2011 (4980 days ago)
Due
Updated 12/02/2011 (4979 days ago)
Assigned
Resolved 12/02/2011 (4979 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
12/02/2011 09:22:45 PM Michael Slusarz Assigned to Michael Slusarz
State ⇒ Resolved
Priority ⇒ 2. Medium
 
12/02/2011 09:22:39 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

[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
12/01/2011 02:14:22 PM jr (at) yaina (dot) de Comment #1
Priority ⇒ 3. High
New Attachment: horde4-pcre813-regex-fix.diff Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ regex compile error with pcre 8.13
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
After updating my machine to openSUSE 12.1 IMP users didn't get the 
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.

Saved Queries