[Tickets #10828] regex compile error with pcre 8.13

bugs at horde.org bugs at horde.org
Thu Dec 1 14:14:23 UTC 2011


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: http://bugs.horde.org/ticket/10828
------------------------------------------------------------------------------
  Ticket           | 10828
  Erstellt Von     | jr at yaina.de
  Zusammenfassung  | regex compile error with pcre 8.13
  Warteschlange    | Horde Framework Packages
  Version          | Git master
  Typ              | Bug
  Status           | Unconfirmed
  Priorität        | 3. High
  Milestone        |
  Patch            | 1
  Zuständige       |
------------------------------------------------------------------------------


jr at yaina.de (2011-12-01 14:14) hat geschrieben:

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.



jr at yaina.de (2011-12-01 14:14) hat hochgeladen: horde4-pcre813-regex-fix.diff

http://bugs.horde.org/h/services/download/?module=whups&actionID=download_file&file=horde4-pcre813-regex-fix.diff&ticket=10828&fn=%2Fhorde4-pcre813-regex-fix.diff





More information about the bugs mailing list