fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2012-07-12 07:44 am

[dw-free] When posting by email, "-- " should be recognised as a signature sepera

[commit: http://hg.dwscoalition.org/dw-free/rev/dad8938e94cd]

http://bugs.dwscoalition.org/show_bug.cgi?id=2595

Handle "-- " in addition to the previous "-- " case.

Patch by [personal profile] swaldman.

Files modified:
  • cgi-bin/LJ/Emailpost.pm
--------------------------------------------------------------------------------
diff -r 67cfa8949ecb -r dad8938e94cd cgi-bin/LJ/Emailpost.pm
--- a/cgi-bin/LJ/Emailpost.pm	Thu Jul 12 15:43:56 2012 +0800
+++ b/cgi-bin/LJ/Emailpost.pm	Thu Jul 12 15:48:23 2012 +0800
@@ -378,7 +378,7 @@
         $body =~ s/-----BEGIN PGP SIGNATURE-----.+//s;
     }
 
-    $body =~ s/^(?:\- )?[\-_]{2,}\s*\r?\n.*//ms; # trim sigs
+    $body =~ s/^(?:\- )?[\-_]{2,}(\s| )*\r?\n.*//ms; # trim sigs
 
     # respect flowed text
     if (lc($format) eq 'flowed') {
--------------------------------------------------------------------------------