Commit:    77089b5ed98470c58ff527f0cbf14f6f27074d8a
Author:    Scott <[email protected]>         Mon, 20 Jul 2015 09:23:07 -0400
Committer: Hannes Magnusson <[email protected]>      Mon, 5 Oct 2015 20:02:36 -0700
Parents:   7054b19417f4ea12d8fbf17dc36bfc99616919ce
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=77089b5ed98470c58ff527f0cbf14f6f27074d8a

Log:
Parse HTTPS urls as well

Changed paths:
  M  include/layout.inc


Diff:
diff --git a/include/layout.inc b/include/layout.inc
index f4a1ce5..3602781 100644
--- a/include/layout.inc
+++ b/include/layout.inc
@@ -260,7 +260,7 @@ function clean_note($text)
 
     // Turn urls into links
     $text = preg_replace(
-        '!((mailto:|(http|ftp|nntp|news):\/\/).*?)(\s|<|\)|"|\\\\|\'|$)!',
+        '!((mailto:|(https?|ftp|nntp|news):\/\/).*?)(\s|<|\)|"|\\\\|\'|$)!',
         '<a href="\1" rel="nofollow" target="_blank">\1</a>\4',
         $text
     );


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to