aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-02-24 00:45:03 -0800
committerfriendica <info@friendica.com>2015-02-24 00:45:03 -0800
commit11df605c2e065e123e58bd73525e7ca2113f40b8 (patch)
treed8e25dd7fb0d1ed759f7c8e069f3b31165f4af39 /include/text.php
parent2264ad5c6ef98a63594f100f06f79bfd8668436a (diff)
downloadvolse-hubzilla-11df605c2e065e123e58bd73525e7ca2113f40b8.tar.gz
volse-hubzilla-11df605c2e065e123e58bd73525e7ca2113f40b8.tar.bz2
volse-hubzilla-11df605c2e065e123e58bd73525e7ca2113f40b8.zip
support rel=me on channel "homepage" url
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php
index c93bc4e70..2a524f7f1 100644
--- a/include/text.php
+++ b/include/text.php
@@ -873,8 +873,8 @@ function valid_email($x){
*/
-function linkify($s) {
- $s = preg_replace("/(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\@\~\#\'\%\$\!\+]*)/", ' <a href="$1" >$1</a>', $s);
+function linkify($s,$me = false) {
+ $s = preg_replace("/(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\@\~\#\'\%\$\!\+]*)/", (($me) ? ' <a href="$1" rel="me" >$1</a>' : ' <a href="$1" >$1</a>'), $s);
$s = preg_replace("/\<(.*?)(src|href)=(.*?)\&amp\;(.*?)\>/ism",'<$1$2=$3&$4>',$s);
return($s);
}