Fix implicit mention detection regular expression flags in ActivityPub\Processor

pull/6839/head
Hypolite Petovan 2019-03-09 09:04:11 -05:00
rodzic af77af0446
commit 70782b3977
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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];
}