]> git.mxchange.org Git - friendica.git/commitdiff
more punctuation characters added to linkify patterns
authorFriendika <info@friendika.com>
Mon, 21 Feb 2011 04:20:33 +0000 (20:20 -0800)
committerFriendika <info@friendika.com>
Mon, 21 Feb 2011 04:20:33 +0000 (20:20 -0800)
boot.php
include/bbcode.php

index 0b6aed2e70128ed6675993ccdad9037f0c2fdc00..d8abf06b04d736c9fbd0fb08bac51d0762686f14 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -2060,7 +2060,7 @@ function aes_encrypt($val,$ky)
 
 if(! function_exists('linkify')) {
 function linkify($s) {
-       $s = preg_replace("/(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%]*)/", ' <a href="$1" target="external-link">$1</a>', $s);
+       $s = preg_replace("/(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%\$\!\+]*)/", ' <a href="$1" target="external-link">$1</a>', $s);
        return($s);
 }}
 
index c55ebab00c152c09361c3d763998adbfe5cd41e9..978b4af692bdafd87c0d8337afc8d33743a0e3da 100644 (file)
@@ -22,7 +22,7 @@ function bbcode($Text) {
        // Perform URL Search
 
 
-       $Text = preg_replace("/([^\]\=]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%\$\!]+)/", ' <a href="$2" target="external-link">$2</a>', $Text);
+       $Text = preg_replace("/([^\]\=]|^)(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\'\%\$\!\+]+)/", ' <a href="$2" target="external-link">$2</a>', $Text);
 
        $Text = preg_replace("/\[url\]([$URLSearchString]*)\[\/url\]/", '<a href="$1" target="external-link">$1</a>', $Text);
        $Text = preg_replace("(\[url\=([$URLSearchString]*)\](.+?)\[/url\])", '<a href="$1" target="external-link">$2</a>', $Text);