Skip to content

Commit ad31f3e

Browse files
authored
Merge pull request #118 from VSEphpbb/VSEphpbb-patch-1
Hot fix for cleaning old ideas
2 parents 6dc53f3 + 707689e commit ad31f3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

event/listener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function clean_message($event)
128128

129129
// This freakish looking regex pattern should
130130
// remove the old ideas link-backs from the message.
131-
$message = preg_replace('/(<br[^>]*>\\n?)\\1-{10}\\1\\1.*]/s', '', $message);
131+
$message = preg_replace('/(<br[^>]*>\\n?)?\\1?-{10}\\1?\\1?.*]/s', '', $message);
132132

133133
$post_row['MESSAGE'] = $message;
134134
$event['post_row'] = $post_row;

0 commit comments

Comments
 (0)