[ic] Bug in 5.2 with username case sensitivity

Stefan Hornburg racke at linuxia.de
Sat Jan 22 15:09:11 EST 2005


On Sat, 22 Jan 2005 05:15:48 -0500
Nicholas Cook <ncook at intropolis.com> wrote:

> I've found that username's are case insensitive when logging in, but are 
> case sensitive when trying to pull up order tracking (order_detail).  I 
> believe the specific snippet from order_detail.html causing the issue is:
> 
> [perl transactions]
>         my $on = $Session->{arg};
>         my $un = $Tag->data('transactions', 'username', $on);
>         if($un eq  $Session->{username}) {
>                 delete $Scratch->{bounce_page};
>         }
>         else {
>                 $Tag->warnings('Not your order!');
>         }
>         return;
> [/perl]
> 
> 
> How can you change this so that usernames are case insensitive like they 
> are during the login process?

if (lc($un) eq lc($Session->{username}) {

should solve your current problem.

Bye
	Racke


-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team



More information about the interchange-users mailing list