6.0.0-beta1
8/8/25

[#13965] Malformed URL Exception from Horde_Text_Filter_Linkurls
Summary Malformed URL Exception from Horde_Text_Filter_Linkurls
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester rainer (at) rainer-nerb (dot) de
Created 04/21/2015 (3762 days ago)
Due
Updated 06/02/2015 (3720 days ago)
Assigned
Resolved 06/02/2015 (3720 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
06/02/2015 12:15:59 AM Michael Rubinsky State ⇒ Resolved
 
04/21/2015 01:10:21 PM Michael Rubinsky Comment #5
Assigned to Michael Rubinsky
Priority ⇒ 1. Low
Reply to this comment
Fixed slightly differently.
04/21/2015 01:09:40 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit 403d9c4c1d0a9c63150e04d28c7aa5eb1754939e
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Tue Apr 21 09:08:17 2015 -0400

     Bug: 13965 Catch Exception from Horde_Text_Filter_Linkurls#_parseUrl

  .../Text_Filter/lib/Horde/Text/Filter/Linkurls.php |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/403d9c4c1d0a9c63150e04d28c7aa5eb1754939e
04/21/2015 11:18:02 AM rainer (at) rainer-nerb (dot) de Comment #3 Reply to this comment
snippet of exception:

InvalidArgumentException Object
(
     [message:protected] => Malformed URL: ://www.link-gmbh.com_
     [string:Exception:private] =>
     [code:protected] => 0
     [file:protected] => /usr/share/pear/Horde/Text/Filter/Linkurls.php
     [line:protected] => 222
     [trace:Exception:private] => Array
         (
             [0] => Array
                 (
                     [file] => /usr/share/pear/Horde/Text/Filter/Linkurls.php
                     [line] => 153
                     [function] => _parseurl
                     [class] => Horde_Text_Filter_Linkurls
                     [type] => ->
                     [args] => Array
                         (
                             [0] => ://www.link-gmbh.com_
04/21/2015 10:52:34 AM rainer (at) rainer-nerb (dot) de Comment #2
New Attachment: patch.txt Download
Reply to this comment
Patch-file
04/21/2015 10:51:15 AM rainer (at) rainer-nerb (dot) de Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Malformed URL Exception from Horde_Text_Filter_Linkurls
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
State ⇒ Unconfirmed
Reply to this comment
A malformed URL leads to an exception and the mail cannot be displayed.

IMHO every possible exception should be caught, so mails can be 
displayed again.

Saved Queries