[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Minor bug fix, UserDB.pm
Hi all -
Below is the fix for a very minor bug in UserDB.pm, which causes an
ambiguity in the error message which is displayed when the user tries to
create an account with illegal characters in the username. This is for IC
4.6.4 - perhaps it has already been fixed in the latest release:
*** UserDB.bak Fri May 18 10:11:30 2001
--- UserDB.pm Fri May 18 10:22:33 2001
***************
*** 1116,1122 ****
if $self->{OPTIONS}{ignore_case};
}
die "Must have longer username.\n" unless
length($self->{USERNAME}) > 1;
! die "Can't have '$1' as username, unsafe characters.\n"
if $self->{USERNAME} !~ m{^$GOOD_CHARS+$};
#::logDebug("new_account username: '$self->{USERNAME}'");
if ($self->{DB}->record_exists($self->{USERNAME})) {
--- 1116,1122 ----
if $self->{OPTIONS}{ignore_case};
}
die "Must have longer username.\n" unless
length($self->{USERNAME}) > 1;
! die "Can't have '$self->{USERNAME}' as username, unsafe
characters.\n"
if $self->{USERNAME} !~ m{^$GOOD_CHARS+$};
#::logDebug("new_account username: '$self->{USERNAME}'");
if ($self->{DB}->record_exists($self->{USERNAME})) {
- Ed L.
===============================================================
New Media E.M.S. Software Solutions for Business
463 Main St., Suite D eCommerce | Consulting | Hosting
Placerville, CA 95667 edl@newmediaems.com
(530) 622-9421 http://www.newmediaems.com
(866) 519-4680 Toll-Free (530) 622-9426 Fax
===============================================================
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users