From: Jan Schneider Date: Wed, 18 Mar 2009 22:53:34 +0000 (+0100) Subject: MFB 1.14.4.33 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c132f07e234199850d07d9ed9feb31ad78ebf9ba;p=horde.git MFB 1.14.4.33 --- 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);