aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2019-02-01 18:01:01 +0100
committerM. Dent <dentm42@gmail.com>2019-02-01 18:01:01 +0100
commit0ded1d326ca0792249e878d40fce4c810416295b (patch)
tree8377df6f44a2a643b24378377dd2a8b1b98dfd9a /include/text.php
parentf30bb452cc39134026d0b6f4b37bda4a5b980b01 (diff)
parent6462c83f69969e1b3a945292a4a9e8df7e730936 (diff)
downloadvolse-hubzilla-0ded1d326ca0792249e878d40fce4c810416295b.tar.gz
volse-hubzilla-0ded1d326ca0792249e878d40fce4c810416295b.tar.bz2
volse-hubzilla-0ded1d326ca0792249e878d40fce4c810416295b.zip
Merge branch 'dev' into 'dev'
Prevent Hubzilla usage for SEO backlinks See merge request hubzilla/core!1501
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 925c8e997..ad7678483 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1107,7 +1107,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);