]> git.mxchange.org Git - friendica.git/commitdiff
fine tune personal regex's
authorfriendica <info@friendica.com>
Wed, 30 Nov 2011 06:49:05 +0000 (22:49 -0800)
committerfriendica <info@friendica.com>
Wed, 30 Nov 2011 06:49:05 +0000 (22:49 -0800)
mod/network.php

index 253fbac443a9783f2e7b4321a724cb49f77a0ea8..e05791614da51eb8995b55e14ffb39d8daa474db 100644 (file)
@@ -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 . '\\]')
                );
        }