From 73564df4d8e3dc42b9a1b179fb7c2ac8bc4b98b1 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 29 Nov 2011 22:49:05 -0800 Subject: fine tune personal regex's --- mod/network.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod') 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 . '\\]') ); } -- cgit v1.2.3