diff options
author | friendica <info@friendica.com> | 2012-03-28 20:50:09 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-28 20:50:09 -0700 |
commit | 4e4f7ac79fe5f75ee5595c3a6eb7d3e445c8c6e2 (patch) | |
tree | ebb3bc0f22f55ea2bcea023b32d0e57200c9293a /include/diaspora.php | |
parent | a946b7cea3e589fc08ca25d84e5d660efa5b3de6 (diff) | |
download | volse-hubzilla-4e4f7ac79fe5f75ee5595c3a6eb7d3e445c8c6e2.tar.gz volse-hubzilla-4e4f7ac79fe5f75ee5595c3a6eb7d3e445c8c6e2.tar.bz2 volse-hubzilla-4e4f7ac79fe5f75ee5595c3a6eb7d3e445c8c6e2.zip |
some reported warnings cleaned up
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-x | include/diaspora.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/diaspora.php b/include/diaspora.php index 84d28a7ec..104ccadf2 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -688,9 +688,9 @@ function diaspora_post($importer,$xml) { // don't link tags that are already embedded in links - if(preg_match('/\[(.*?)' . preg_quote($tag) . '(.*?)\]/',$body)) + if(preg_match('/\[(.*?)' . preg_quote($tag,'/') . '(.*?)\]/',$body)) continue; - if(preg_match('/\[(.*?)\]\((.*?)' . preg_quote($tag) . '(.*?)\)/',$body)) + if(preg_match('/\[(.*?)\]\((.*?)' . preg_quote($tag,'/') . '(.*?)\)/',$body)) continue; $basetag = str_replace('_',' ',substr($tag,1)); @@ -853,9 +853,9 @@ function diaspora_reshare($importer,$xml) { // don't link tags that are already embedded in links - if(preg_match('/\[(.*?)' . preg_quote($tag) . '(.*?)\]/',$body)) + if(preg_match('/\[(.*?)' . preg_quote($tag,'/') . '(.*?)\]/',$body)) continue; - if(preg_match('/\[(.*?)\]\((.*?)' . preg_quote($tag) . '(.*?)\)/',$body)) + if(preg_match('/\[(.*?)\]\((.*?)' . preg_quote($tag,'/') . '(.*?)\)/',$body)) continue; @@ -1094,9 +1094,9 @@ function diaspora_comment($importer,$xml,$msg) { // don't link tags that are already embedded in links - if(preg_match('/\[(.*?)' . preg_quote($tag) . '(.*?)\]/',$body)) + if(preg_match('/\[(.*?)' . preg_quote($tag,'/') . '(.*?)\]/',$body)) continue; - if(preg_match('/\[(.*?)\]\((.*?)' . preg_quote($tag) . '(.*?)\)/',$body)) + if(preg_match('/\[(.*?)\]\((.*?)' . preg_quote($tag,'/') . '(.*?)\)/',$body)) continue; |