MFB 1.14.4.33
authorJan Schneider <jan@horde.org>
Wed, 18 Mar 2009 22:53:34 +0000 (23:53 +0100)
committerJan Schneider <jan@horde.org>
Wed, 18 Mar 2009 22:53:34 +0000 (23:53 +0100)
framework/Mime/lib/Horde/Mime/Viewer/Html.php

index acc3127..dc7e4b0 100644 (file)
@@ -144,7 +144,7 @@ class Horde_Mime_Viewer_html extends Horde_Mime_Viewer_Driver
                          * domain is the same on both links (e.g.
                          * adtracking.example.com & www.example.com). */
                         preg_match('/\.?([^\.\/]+\.[^\.\/]+)[\/?]/', $link, $host1);
-                        preg_match('/\.?([^\.\/]+\.[^\.\/ ]+)([\/ ].*)?$/', $target, $host2);
+                        preg_match('/\.?([^\.\/]+\.[^\.\/ ]+)([\/ ].*)?$/s', $target, $host2);
                         if (!(count($host1) && count($host2)) ||
                             (strcasecmp($host1[1], $host2[1]) !== 0)) {
                             $data = preg_replace('/href\s*=\s*["\']?\s*(?:http|https|ftp):\/\/' . preg_quote($m[1][$i], '/') . '["\']?[^>]*>\s*(?:(?:http|https|ftp):\/\/)?' . preg_quote($m[2][$i], '/') . '<\/a/is', 'class="mimeStatusWarning" $0', $data);