[Bps-public-commit] Net-IMAP-Server branch, master, updated. 1.21-1-g51ce824

Alex M Vandiver alexmv at bestpractical.com
Thu Jul 9 19:33:48 EDT 2009


The branch, master has been updated
       via  51ce8242d2e29fcb57d75badfbe2f60934e64a39 (commit)
      from  543f397f01721a212143000e6e485c0d41398725 (commit)

Summary of changes:
 lib/Net/IMAP/Server/Message.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit 51ce8242d2e29fcb57d75badfbe2f60934e64a39
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Jul 9 19:33:43 2009 -0400

    Warning avoidance for "substr outside of string" warnings

diff --git a/lib/Net/IMAP/Server/Message.pm b/lib/Net/IMAP/Server/Message.pm
index 9682fad..7e847d4 100644
--- a/lib/Net/IMAP/Server/Message.pm
+++ b/lib/Net/IMAP/Server/Message.pm
@@ -471,6 +471,7 @@ sub mime_select {
     }
 
     return $result unless defined $start;
+    return "" if $start > length $result;
     return substr( $result, $start ) unless defined $end;
     return substr( $result, $start, $end );
 }

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



More information about the Bps-public-commit mailing list