[Koha-patches] [PATCH] Bug 5066 (Incorrect use of localtime function when calling _session_log)

Galen Charlton gmcharlt at gmail.com
Sat Nov 13 17:50:53 CET 2010


Hi,

I've submitted a counter-patch which formats the timestamp the same
way that the rest of the _session_log calls in C4::Auth do.  Please
take a look.

Regards,

Galen

On Thu, Nov 4, 2010 at 5:26 AM, Marcel de Rooy <M.de.Rooy at rijksmuseum.nl> wrote:
> ---
>  C4/Auth.pm |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> 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;
>                }
> --
> 1.6.0.6
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
>



-- 
Galen Charlton
gmcharlt at gmail.com


More information about the Koha-patches mailing list