[Rt-commit] r4136 - in rt/branches/3.7-EXPERIMENTAL: .
lib/RT/Interface
ruz at bestpractical.com
ruz at bestpractical.com
Tue Nov 22 21:36:06 EST 2005
Author: ruz
Date: Tue Nov 22 21:36:05 2005
New Revision: 4136
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web.pm
Log:
r1347 at cubic-pc: cubic | 2005-11-22 10:42:29 +0300
* refactor WebCanonicalizeInfo
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Interface/Web.pm Tue Nov 22 21:36:05 2005
@@ -124,13 +124,7 @@
=cut
sub WebCanonicalizeInfo {
- my $user;
-
- if ( defined $ENV{'REMOTE_USER'} ) {
- $user = lc ( $ENV{'REMOTE_USER'} ) if( length($ENV{'REMOTE_USER'}) );
- }
-
- return $user;
+ return $ENV{'REMOTE_USER'}? lc $ENV{'REMOTE_USER'}: $ENV{'REMOTE_USER'};
}
# }}}
More information about the Rt-commit
mailing list