Skip to content

Commit

Permalink
Bug: 13965 Catch Exception from Horde_Text_Filter_Linkurls#_parseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Apr 21, 2015
1 parent 5bfb121 commit 403d9c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/Text_Filter/lib/Horde/Text/Filter/Linkurls.php
Expand Up @@ -158,7 +158,8 @@ public function callback($match)
strlen($host)
);
}
} catch (Horde_Idna_Exception $e) {}
} catch (Horde_Idna_Exception $e) {
} catch (InvalidArgumentException $e) {}

$replacement = '<a href="' . $href . '"' .
($this->_params['nofollow'] ? ' rel="nofollow"' : '') .
Expand Down Expand Up @@ -205,6 +206,7 @@ function($hex) {
* @param string $url The url to parse.
*
* @return mixed The parsed url.
* @throws InvalidArgumentException
*/
protected function _parseurl($url)
{
Expand Down

0 comments on commit 403d9c4

Please sign in to comment.