aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-20 04:07:24 -0700
committerFriendika <info@friendika.com>2011-09-20 04:07:24 -0700
commit119cd9c0cee5e416199da900016609259598cb0b (patch)
treefc274a403099ddb9108e805fd1b7cc6ad36fd417 /mod
parent9edf15d3ef0548a35862fab37eee1fd310705285 (diff)
downloadvolse-hubzilla-119cd9c0cee5e416199da900016609259598cb0b.tar.gz
volse-hubzilla-119cd9c0cee5e416199da900016609259598cb0b.tar.bz2
volse-hubzilla-119cd9c0cee5e416199da900016609259598cb0b.zip
more multiline regex fixes
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php
index cad72122b..e5d4eea82 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -336,9 +336,9 @@ function item_post(&$a) {
// embedded bookmark in post? convert to regular url and set bookmark flag
$bookmark = 0;
- if(preg_match_all("/\[bookmark\=([^\]]*)\](.*?)\[\/bookmark\]/m",$body,$match)) {
+ if(preg_match_all("/\[bookmark\=([^\]]*)\](.*?)\[\/bookmark\]/ism",$body,$match)) {
$bookmark = 1;
- $body = preg_replace("/\[bookmark\=([^\]]*)\](.*?)\[\/bookmark\]/m",'[url=$1]$2[/url]',$body);
+ $body = preg_replace("/\[bookmark\=([^\]]*)\](.*?)\[\/bookmark\]/ism",'[url=$1]$2[/url]',$body);
}
@@ -346,7 +346,7 @@ function item_post(&$a) {
* Fold multi-line [code] sequences
*/
- $body = preg_replace('/\[\/code\]\s*\[code\]/m',"\n",$body);
+ $body = preg_replace('/\[\/code\]\s*\[code\]/ism',"\n",$body);
/**
* Look for any tags and linkify them