From 481c7f4626ceed3c64f7a1bd6c0ffe00c5cf9fa5 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 23 Jul 2010 15:52:46 -0600 Subject: [PATCH] Need to check the scheme of the actual link, not the text data --- framework/Mime/lib/Horde/Mime/Viewer/Html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.11.0