[Rt-commit] rt branch, 3.8-trunk, updated. 90546414c8887e344f995da5f20f53a58939bbd8

Kevin Falcone falcone at bestpractical.com
Wed Jul 22 11:44:01 EDT 2009


The branch, 3.8-trunk has been updated
       via  90546414c8887e344f995da5f20f53a58939bbd8 (commit)
      from  66f97da15d84ad97536c0e0c42d503962a1276e6 (commit)

Summary of changes:
 lib/RT/Interface/Web.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 90546414c8887e344f995da5f20f53a58939bbd8
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Wed Jul 22 11:39:56 2009 -0400

    Loosen up the regex that looks for signatures
    
    FCKEDitor appears to have stopped wrapping our signature-only messages
    in <p> tags and they weren't being detected as "empty" correctly.

diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index 01b701b..d58d9ff 100755
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -310,7 +310,7 @@ sub StripContent {
     return ''
         if $html
         and $content
-        =~ m{^\s*<p>\s*(--)?\s*<br[^>]*?/?>\s*\Q$sig\E\s*</p>\s*$}s;
+        =~ m{^\s*(?:<p>)?\s*(--)?\s*<br[^>]*?/?>\s*\Q$sig\E\s*(?:</p>)?\s*$}s;
 
     # Pass it through
     return $content;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list