com web/php: Parse HTTPS urls as well: include/layout.inc
| From: | Hannes Magnusson | Date: | Tue, 06 Oct 2015 03:02:36 +0000 |
| Subject: | com web/php: Parse HTTPS urls as well: include/layout.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-24195@lists.php.net to get a copy of this message | ||
Commit: 77089b5ed98470c58ff527f0cbf14f6f27074d8a
Author: Scott <scott@paragonie.com> Mon, 20 Jul 2015 09:23:07 -0400
Committer: Hannes Magnusson <bjori@php.net> 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
);