6.0.0-alpha14
7/2/25

[#12152] Brackets in URLs cause problems showing message
Summary Brackets in URLs cause problems showing message
Queue IMP
Queue Version 6.0.4
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester vmkari (at) cc (dot) helsinki (dot) fi
Created 04/03/2013 (4473 days ago)
Due
Updated 04/10/2013 (4466 days ago)
Assigned 04/03/2013 (4473 days ago)
Resolved 04/09/2013 (4467 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/10/2013 06:40:15 AM vmkari (at) cc (dot) helsinki (dot) fi Comment #8 Reply to this comment
Changes have been made in Git (master):
Again, many thanks for your great problem solving. We do have an older 
PHP version and raising the pcre limit solved the problem!

04/09/2013 09:30:41 PM Git Commit Comment #7 Reply to this comment
Changes have been made in Git (master):

commit 23ae3d2699eb42c638be568f8282091f2c5a29e6
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Tue Apr 9 13:13:13 2013 -0600

     Unit test for Bug #12152

  .../test/Horde/Text/Filter/LinkurlsTest.php        |   15 +++++++++++++++
  1 files changed, 15 insertions(+), 0 deletions(-)

http://git.horde.org/horde-git/-/commit/23ae3d2699eb42c638be568f8282091f2c5a29e6
04/09/2013 07:09:22 PM Michael Slusarz Comment #6
Assigned to Michael Slusarz
Priority ⇒ 1. Low
State ⇒ Resolved
Reply to this comment
Horde_Text_Filter 2.1.1.

You are most likely using a version of PHP < 5.3.7 which had an 
unrealistically low default value of pcre.backtrack_limit.  Either 
upgrade PHP or set the default value to at least 1000000 instead.
04/09/2013 07:07:50 PM Git Commit Comment #5 Reply to this comment
Changes have been made in Git (master):

commit 4a6352106b93a92e00cd32128457d66d8606afd3
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Tue Apr 9 13:07:16 2013 -0600

     [mms] If a preg call exceeds the backtrack limit, fallback to the 
original text (Bug #12152).

  framework/Text_Filter/lib/Horde/Text/Filter.php |   12 ++++++++++--
  framework/Text_Filter/package.xml               |    4 ++--
  2 files changed, 12 insertions(+), 4 deletions(-)

http://git.horde.org/horde-git/-/commit/4a6352106b93a92e00cd32128457d66d8606afd3
04/03/2013 04:24:49 PM Michael Slusarz Comment #4 Reply to this comment
Possibly an unreasonable low preg backtrack limit issue?  Although the 
symptoms don't quite match up.

It might be an IMAP server parsing issue also (directly viewing an 
attachment means that we don't do any parsing ourselves).  Maybe an 
IMAP log would be helpful.



To further debug this issue, we need details of the IMP -> IMAP/POP 
communication.

To enable debugging, see instructions contained in 
imp/config/backends.php (the 'debug' config parameter).

Debugging should not be enabled on a production server,   Attach/post 
only the portion of the log that directly deals with the problem 
reported (it may be simplest to clear the log file and then perform 
the event that causes the error).
04/03/2013 12:46:28 PM vmkari (at) cc (dot) helsinki (dot) fi Comment #3 Reply to this comment
Do you get any error messages in in the webserver/PHP/Horde logs?
Thanks for your quick reply.

We see no errors whatsoever. However, it is at least a remote 
possibility that one of our local patches could have effect on this. 
Our Horde/IMP admin will return next week and I guess we'll have to do 
new tests on a totally unpatched Horde/IMP.

04/03/2013 11:38:59 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Cannot reproduce. Do you get any error messages in in the 
webserver/PHP/Horde logs?
04/03/2013 08:35:26 AM vmkari (at) cc (dot) helsinki (dot) fi Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Brackets in URLs cause problems showing message
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
New Attachment: url_brackets_problem.tar.gz Download
State ⇒ Unconfirmed
Reply to this comment
IMP fails to display a message when it contains an URL that contains 
brackets. Instead IMP shows the content as an attachment. Trying to 
open the attachment results in a blank window with no content. See the 
attached screenshot for details.

I have also attached two mail messages as examples, one of which 
displays perfectly okay and the other (containing an URL with 
brackets) failing to display.

Saved Queries