summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Uckelman <uckelman@nomic.net>2012-03-17 16:29:04 -0700
committerJoel Uckelman <uckelman@nomic.net>2012-03-17 16:29:04 -0700
commit18362752ce713bf964891531fa8ebb0f38360dc7 (patch)
tree430996dc792eb26c833db7170cb9eb2d65e7d649 /src
parentbd8187cbbbd09b5c47ad31c74023597c8005f7d6 (diff)
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/PhpBB3Impl.php2
1 files changed, 1 insertions, 1 deletions
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