Better determination if initial slug is a domain name.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 3 Aug 2010 18:37:36 +0000 (12:37 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 3 Aug 2010 18:40:03 +0000 (12:40 -0600)
framework/Mime_Viewer/lib/Horde/Mime/Viewer/Html.php

index d07ebb1..3e45cd9 100644 (file)
@@ -236,7 +236,7 @@ class Horde_Mime_Viewer_Html extends Horde_Mime_Viewer_Base
         /* Check for case where text is just the domain name. */
         if (!isset($text_url['host'])) {
             if (!isset($text_url['path']) ||
-                !preg_match("/^[^\.\s]+(?:\.[^\.\s]+)+$/", $text_url['path'])) {
+                !preg_match("/^[^\.\s\/]+(?:\.[^\.\s]+)+$/", $text_url['path'])) {
                 return false;
             }