From 18362752ce713bf964891531fa8ebb0f38360dc7 Mon Sep 17 00:00:00 2001 From: Joel Uckelman Date: Sat, 17 Mar 2012 16:29:04 -0700 Subject: * Must double-backslash regex metacharacters in PHP strings. * Message lines are separated by CR+LF now, not just LF, so adjusted list footer strip pattern. --- src/PhpBB3Impl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PhpBB3Impl.php') diff --git a/src/PhpBB3Impl.php b/src/PhpBB3Impl.php index 7e8595a..af1d977 100644 --- a/src/PhpBB3Impl.php +++ b/src/PhpBB3Impl.php @@ -212,7 +212,7 @@ class PhpBB3Impl implements PhpBB3 { # FIXME: extract the footer pattern into a config file? # strip the list footer - $message = preg_replace("/^_______________________________________________\nmessages mailing list\nmessages@vassalengine.org\nhttp:\/\/www.vassalengine.org\/mailman\/listinfo\/messages.*/ms", '', $message); + $message = preg_replace("/^_______________________________________________\\r\\nmessages mailing list\\r\\nmessages@vassalengine.org\\r\\nhttp:\/\/www.vassalengine.org\/mailman\/listinfo\/messages.*/ms", '', $message); # TODO: convert > quoting into BBCode -- cgit v1.2.3