From c132f07e234199850d07d9ed9feb31ad78ebf9ba Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 18 Mar 2009 23:53:34 +0100 Subject: [PATCH] MFB 1.14.4.33 --- framework/Mime/lib/Horde/Mime/Viewer/Html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Mime/lib/Horde/Mime/Viewer/Html.php b/framework/Mime/lib/Horde/Mime/Viewer/Html.php index acc3127aa..dc7e4b041 100644 --- a/framework/Mime/lib/Horde/Mime/Viewer/Html.php +++ b/framework/Mime/lib/Horde/Mime/Viewer/Html.php @@ -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); -- 2.11.0