X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=site_perl%2FUID.pm;h=ad7c89dd5b50aa7499fbd932d094812432f1f6db;hb=8f4617e35f89b741b8ab5ba9136667b4c877d992;hp=156bd30248d8db834d5854cafe60029f304b19f9;hpb=57c5b4de544c1609597e568da88195290eeef4c3;p=freeside.git diff --git a/site_perl/UID.pm b/site_perl/UID.pm index 156bd3024..ad7c89dd5 100644 --- a/site_perl/UID.pm +++ b/site_perl/UID.pm @@ -164,13 +164,13 @@ object. Support for CGI::Base and derived classes is depriciated. sub cgisetotaker { if ( $cgi && $cgi->isa('CGI::Base') && defined $cgi->var('REMOTE_USER')) { carp "Use of CGI::Base is depriciated"; - $user = $cgi->var('REMOTE_USER'); + $user = lc ( $cgi->var('REMOTE_USER') ); } elsif ( $cgi && $cgi->isa('CGI') && defined $cgi->remote_user ) { - $user = $cgi->remote_user; + $user = lc ( $cgi->remote_user ); } else { die "fatal: Can't get REMOTE_USER!"; } - return $user; + $user; } =item checkeuid @@ -200,7 +200,7 @@ Swaps real and effective UIDs. =cut sub swapuid { - ($<,$>) = ($>,$<); + ($<,$>) = ($>,$<) if $< != $>; } =item getsecrets [ USER ] @@ -241,7 +241,7 @@ coderef into the hash %FS::UID::callback : =head1 VERSION -$Id: UID.pm,v 1.6 1998-11-15 05:27:48 ivan Exp $ +$Id: UID.pm,v 1.10 1999-04-12 22:41:09 ivan Exp $ =head1 BUGS @@ -287,7 +287,19 @@ inlined suidsetup ivan@sisd.com 98-sep-12 $Log: UID.pm,v $ -Revision 1.6 1998-11-15 05:27:48 ivan +Revision 1.10 1999-04-12 22:41:09 ivan +bugfix; $user is a global (yuck) + +Revision 1.9 1999/04/12 21:09:39 ivan +force username to lowercase + +Revision 1.8 1999/02/23 07:23:23 ivan +oops, don't comment out &swapuid in &adminsuidsetup! + +Revision 1.7 1999/01/18 09:22:40 ivan +changes to track email addresses for email invoicing + +Revision 1.6 1998/11/15 05:27:48 ivan bugfix for new configuration layout Revision 1.5 1998/11/15 00:51:51 ivan