[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-510-g236983a

Shawn Moore sartak at bestpractical.com
Mon Aug 23 19:56:25 EDT 2010


The branch, 3.9-trunk has been updated
       via  236983a3f18289ffac58addffde64792732fcc33 (commit)
      from  33a934fdb37835bea613bd845d217a769c6f16cc (commit)

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

- Log -----------------------------------------------------------------
commit 236983a3f18289ffac58addffde64792732fcc33
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Aug 23 19:57:02 2010 -0400

    Avoid undef warnings on newer perls where length(undef) returns undef

diff --git a/lib/RT/Attachment_Overlay.pm b/lib/RT/Attachment_Overlay.pm
index d1a14bd..f91d709 100644
--- a/lib/RT/Attachment_Overlay.pm
+++ b/lib/RT/Attachment_Overlay.pm
@@ -350,7 +350,7 @@ sub ContentLength {
     unless ( defined $len ) {
         use bytes;
         no warnings 'uninitialized';
-        $len = length($self->Content);
+        $len = length($self->Content) || 0;
         $self->SetHeader('Content-Length' => $len);
     }
     return $len;

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


More information about the Rt-commit mailing list