[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
swaldman.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2595
Handle "-- " in addition to the previous "-- " case.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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') { --------------------------------------------------------------------------------