aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-02-01 15:47:51 +0100
committerMax Kostikov <max@kostikov.co>2019-02-01 15:47:51 +0100
commit6462c83f69969e1b3a945292a4a9e8df7e730936 (patch)
tree0ac9bab049ec43f682cf0298de9448dae4aaa542
parentc1159337dae9a18f704228ed255428d76f7c498a (diff)
downloadvolse-hubzilla-6462c83f69969e1b3a945292a4a9e8df7e730936.tar.gz
volse-hubzilla-6462c83f69969e1b3a945292a4a9e8df7e730936.tar.bz2
volse-hubzilla-6462c83f69969e1b3a945292a4a9e8df7e730936.zip
Prevent Hubzilla usage for SEO backlinks
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 7d253e3d7..b6a1004c2 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1093,7 +1093,7 @@ function searchbox($s,$id='search-box',$url='/search',$save = false) {
* @return string
*/
function linkify($s, $me = false) {
- $s = preg_replace("/(https?\:\/\/[a-zA-Z0-9\pL\:\/\-\?\&\;\.\=\_\@\~\#\'\%\$\!\+\,\@]*)/u", (($me) ? ' <a href="$1" rel="me" >$1</a>' : ' <a href="$1" >$1</a>'), $s);
+ $s = preg_replace("/(https?\:\/\/[a-zA-Z0-9\pL\:\/\-\?\&\;\.\=\_\@\~\#\'\%\$\!\+\,\@]*)/u", (($me) ? ' <a href="$1" rel="me nofollow" >$1</a>' : ' <a href="$1" >$1</a>'), $s);
$s = preg_replace("/\<(.*?)(src|href)=(.*?)\&amp\;(.*?)\>/ism",'<$1$2=$3&$4>',$s);
return($s);