From: Michael M Slusarz Date: Fri, 23 Jul 2010 21:52:46 +0000 (-0600) Subject: Need to check the scheme of the actual link, not the text data X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=481c7f4626ceed3c64f7a1bd6c0ffe00c5cf9fa5;p=horde.git Need to check the scheme of the actual link, not the text data --- diff --git a/framework/Mime/lib/Horde/Mime/Viewer/Html.php b/framework/Mime/lib/Horde/Mime/Viewer/Html.php index 92cd2b200..97f6b3a09 100644 --- a/framework/Mime/lib/Horde/Mime/Viewer/Html.php +++ b/framework/Mime/lib/Horde/Mime/Viewer/Html.php @@ -226,8 +226,8 @@ class Horde_Mime_Viewer_Html extends Horde_Mime_Viewer_Driver $href_url = parse_url($href); /* Only concern ourselves with HTTP and FTP links. */ - if (!isset($text_url['scheme']) || - !in_array($text_url['scheme'], array('ftp', 'http', 'https'))) { + if (!isset($href_url['scheme']) || + !in_array($href_url['scheme'], array('ftp', 'http', 'https'))) { return false; }