From: Hypolite Petovan Date: Sat, 9 Mar 2019 14:04:11 +0000 (-0500) Subject: Fix implicit mention detection regular expression flags in ActivityPub\Processor X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=70782b397764ca44d5dc5d6b03f2ae714f32edae;p=friendica.git Fix implicit mention detection regular expression flags in ActivityPub\Processor --- diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index fafc26b733..abd36f3014 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -710,7 +710,7 @@ class Processor $kept_mentions = []; // Extract one prepended mention at a time from the body - while(preg_match('#^(@\[url=([^\]]+)].*?\[\/url]\s)(.*)#mis', $body, $matches)) { + while(preg_match('#^(@\[url=([^\]]+)].*?\[\/url]\s)(.*)#is', $body, $matches)) { if (!in_array($matches[2], $potential_mentions) ) { $kept_mentions[] = $matches[1]; }