diff options
author | Friendika <info@friendika.com> | 2010-12-01 21:13:09 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-12-01 21:13:09 -0800 |
commit | 42d66874bed88753cbcf08a060c89f789f41a3ae (patch) | |
tree | f8d79a930522b934797f83a3c10c0daf9b1262c9 /include/bbcode.php | |
parent | 1adf69a04967a3829749b99c8ce663d5068748dd (diff) | |
download | volse-hubzilla-42d66874bed88753cbcf08a060c89f789f41a3ae.tar.gz volse-hubzilla-42d66874bed88753cbcf08a060c89f789f41a3ae.tar.bz2 volse-hubzilla-42d66874bed88753cbcf08a060c89f789f41a3ae.zip |
improved linkification of naked text urls
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index 52ca86bc1..fbae7bc32 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -18,8 +18,7 @@ function bbcode($Text) { // Perform URL Search - $Text = preg_replace("/[^\]\=](http\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%]*)/", ' <a href="$1" >$1</a>', $Text); - $Text = preg_replace("/[^\]\=](https\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%]*)/", ' <a href="$1" >$1</a>', $Text); + $Text = preg_replace("/[^\]\=](https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%]*)/", ' <a href="$1" >$1</a>', $Text); $Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '<a href="$1" >$1</a>', $Text); $Text = preg_replace("(\[url\=([$URLSearchString]*)\](.+?)\[/url\])", '<a href="$1" >$2</a>', $Text); |