Summary: | Incorrect use of localtime function when calling _session_log | ||
---|---|---|---|
Product: | Koha | Reporter: | Marcel de Rooy <m.de.rooy> |
Component: | Authentication | Assignee: | Marcel de Rooy <m.de.rooy> |
Status: | CLOSED FIXED | QA Contact: | Bugs List <koha-bugs> |
Severity: | trivial | ||
Priority: | PATCH-Sent (DO NOT USE) | CC: | chris, dpavlin |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | --- | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: |
Description
Marcel de Rooy
2010-07-28 13:51:38 UTC
Problem still occurred on one place in code. Patch sent for master (3.4). diff --git a/C4/Auth.pm b/C4/Auth.pm index 6ba852d..58ce63e 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -717,7 +717,7 @@ sub checkauth { ( $return, $cardnumber ) = checkpw( $dbh, $userid, $password, $query ); } if ($return) { - _session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},localtime); + _session_log(sprintf "%20s from %16s logged in at %30s.\n", $userid,$ENV{'REMOTE_ADDR'},scalar localtime); if ( $flags = haspermission( $userid, $flagsrequired ) ) { $loggedin = 1; } -- Patch pushed please test and close This bug has a patch presently committed to HEAD and 3.2.x. Please take the appropriate action to update the status of this bug. Remember, bugs which have been resolved should be tested and marked closed, preferably by the original reporter. |