aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-11-29 22:49:05 -0800
committerfriendica <info@friendica.com>2011-11-29 22:49:05 -0800
commit73564df4d8e3dc42b9a1b179fb7c2ac8bc4b98b1 (patch)
tree2905f01cffbbf3c420f64275d57c453cb6286e0a /mod/network.php
parent84e197cde9f5f43a7c882219e4022f73e1dcf83e (diff)
downloadvolse-hubzilla-73564df4d8e3dc42b9a1b179fb7c2ac8bc4b98b1.tar.gz
volse-hubzilla-73564df4d8e3dc42b9a1b179fb7c2ac8bc4b98b1.tar.bz2
volse-hubzilla-73564df4d8e3dc42b9a1b179fb7c2ac8bc4b98b1.zip
fine tune personal regex's
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/network.php b/mod/network.php
index 253fbac44..e05791614 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -373,10 +373,10 @@ function network_content(&$a, $update = 0) {
if($conv) {
$myurl = $a->get_baseurl() . '/profile/'. $a->user['nickname'];
$myurl = substr($myurl,strpos($myurl,'://')+3);
- $myurl = str_replace('www.','',$myurl);
+ $myurl = str_replace(array('www.','.'),array('','\\.'),$myurl);
$sql_extra .= sprintf(" AND `item`.`parent` IN (SELECT distinct(`parent`) from item where ( `author-link` regexp '%s' or `tag` regexp '%s' )) ",
- dbesc($myurl),
- dbesc($myurl)
+ dbesc($myurl . '$'),
+ dbesc($myurl . '\\]')
);
}