[Rt-commit] rt branch, 3.8/rest-defined-session, created. rt-3.8.11rc1-1-g27677dd

Alex Vandiver alexmv at bestpractical.com
Mon Oct 31 16:14:42 EDT 2011


The branch, 3.8/rest-defined-session has been created
        at  27677dd7bd4d108e19428ef386208f21008b2af1 (commit)

- Log -----------------------------------------------------------------
commit 27677dd7bd4d108e19428ef386208f21008b2af1
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Oct 31 15:25:29 2011 -0400

    Perl 5.12 deprecated use of `defined %hash`; remove it
    
    This change was missed when 74428a7 was applied to the standard logout mechanism.
    (cherry picked from commit 9c7fd03788cbf21ecfd5152bb8a7e9f8cc74387e)

diff --git a/share/html/REST/1.0/logout b/share/html/REST/1.0/logout
index a6b0bac..2e59b1d 100755
--- a/share/html/REST/1.0/logout
+++ b/share/html/REST/1.0/logout
@@ -46,6 +46,6 @@
 %#
 %# END BPS TAGGED BLOCK }}}
 <%PERL>
-tied(%session)->delete if (defined %session);
+tied(%session)->delete if keys %session;
 </%PERL>
 RT/<% $RT::VERSION %> 200 Ok

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


More information about the Rt-commit mailing list