Need to check the scheme of the actual link, not the text data
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 23 Jul 2010 21:52:46 +0000 (15:52 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 23 Jul 2010 21:52:46 +0000 (15:52 -0600)
framework/Mime/lib/Horde/Mime/Viewer/Html.php

index 92cd2b2..97f6b3a 100644 (file)
@@ -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;
         }