diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-08-31 07:21:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-08-31 07:21:43 +0000 |
commit | dd3cf3be65e7f31b82b442aaf159a2120699a359 (patch) | |
tree | e0b670342eab3ada06c661b06e54b26463336fe9 /modules | |
parent | 2cc7b8cceab297aaf83ea42c0f3e30eaee731cbd (diff) | |
download | brdo-dd3cf3be65e7f31b82b442aaf159a2120699a359.tar.gz brdo-dd3cf3be65e7f31b82b442aaf159a2120699a359.tar.bz2 |
- Patch #81619 by m3avrck: clean up default phpTemplates.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/filter/filter.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 1eb786551..545ec0885 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -1095,7 +1095,7 @@ function _filter_url($text, $format) { // Match absolute URLs. $text = preg_replace_callback("!(<p>|<li>|<br\s*/?>|[ \n\r\t\(])((http://|https://|ftp://|mailto:|smb://|afp://|file://|gopher://|news://|ssl://|sslv2://|sslv3://|tls://|tcp://|udp://)([a-zA-Z0-9@:%_+*~#?&=.,/;-]*[a-zA-Z0-9@:%_+*~#&=/;-]))([.,?]?)(?=(</p>|</li>|<br\s*/?>|[ \n\r\t\)]))!i", '_filter_url_parse_full_links', $text); - + // Match e-mail addresses. $text = preg_replace("!(<p>|<li>|<br\s*/?>|[ \n\r\t\(])([A-Za-z0-9._-]+@[A-Za-z0-9._+-]+\.[A-Za-z]{2,4})([.,?]?)(?=(</p>|</li>|<br\s*/?>|[ \n\r\t\)]))!i", '\1<a href="mailto:\2">\2</a>\3', $text); @@ -1107,7 +1107,7 @@ function _filter_url($text, $format) { } /** - * Make links out of absolute URLs. + * Make links out of absolute URLs. */ function _filter_url_parse_full_links($match) { $match[2] = decode_entities($match[2]); |