Bugzilla – Attachment 22806 Details for
Bug 11077
Correct silent warnings in C4/Auth.pm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11077 - Correct silent warnings in C4/Auth.pm
Bug-11077---Correct-silent-warnings-in-C4Authpm.patch (text/plain), 1.43 KB, created by
Srdjan Jankovic
on 2013-11-08 07:55:26 UTC
(
hide
)
Description:
Bug 11077 - Correct silent warnings in C4/Auth.pm
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2013-11-08 07:55:26 UTC
Size:
1.43 KB
patch
obsolete
>From 02b45154ef9351169e646a8defbf1b2a856d1fab Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Fri, 1 Nov 2013 09:51:28 -0400 >Subject: [PATCH] Bug 11077 - Correct silent warnings in C4/Auth.pm > >This patch corrects a noisy ne condition. > $userid = $retuserid if ( $retuserid ne ''); >became > $userid = $retuserid if ( $retuserid ); > >It also integrates Srdjan Jankovic's patch with Petter Goksoyrsen's >patch, while correcting the problems found. >--- > C4/Auth.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 9d0b623..1e038a2 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -714,7 +714,7 @@ sub checkauth { > logout_cas($query); > } > } >- elsif ( $lasttime && ($lasttime < time() - $timeout) ) { >+ elsif ( !$lasttime || ($lasttime < time() - $timeout) ) { > # timed logout > $info{'timed_out'} = 1; > $session->delete() if $session; >@@ -838,7 +838,7 @@ sub checkauth { > my $retuserid; > ( $return, $cardnumber, $retuserid ) = > checkpw( $dbh, $userid, $password, $query ); >- $userid = $retuserid if ( $retuserid ne '' ); >+ $userid = $retuserid if ( $retuserid ); > } > if ($return) { > #_session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},(strftime '%c', localtime)); >-- >1.8.1.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11077
:
22042
|
22043
|
22120
|
22125
|
22665
|
22667
|
22805
|
22806
|
22831
|
22844
|
22854
|
23197
|
23198
|
23199
|
23214
|
23215
|
23217
|
23218
|
23219
|
23240
|
23268
|
23288