diff --git a/include/class.format.php b/include/class.format.php index bbacfd68dbedc5067e9886d6e58f35272257e0ab..7370e62b308303765d8a638be985cb97a7861d3b 100644 --- a/include/class.format.php +++ b/include/class.format.php @@ -465,7 +465,7 @@ class Format { function($match) { // Scan for things that look like URLs return preg_replace_callback( - '`(?<!>)(((f|ht)tp(s?)://|(?<!//)www\.)([-+~%/.\w]+)(?:[-?#+=&;%@.\w]*)?)' + '`(?<!>)(((f|ht)tp(s?)://|(?<!//)www\.)([-+~%/.\w]+)(?:[-?#+=&;%@.\w\[\]\/]*)?)' .'|(\b[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,63})`', function ($match) { if ($match[1]) {