Re: problem in OpenSRS.pm with error checking for alpha character on 2nd and 3rd address fields

From: Charles Daminato (chuck@opensrs.org)
Date: Tue May 09 2000 - 08:24:48 EDT


Actually, error checking SHOULD exist for Address2 IF there's data in that
field. If you alter OpenSRS.pm (or OpenSRS.pl) the server will deny the
registration due to error checking being done on the server side as well.

The algorithm requires that if there's ANY data in Address2 there must be
one alpha character. So, you can't have "104", but you can have "Suite
104".

The error checking is there for a reason, I strongly suggest you just leave
it :)

----- Original Message -----
From: BWSD Hostmaster <hostmaster@bwsd.com>
To: <dev-list@opensrs.org>
Sent: Monday, May 08, 2000 9:40 PM
Subject: problem in OpenSRS.pm with error checking for alpha character on
2nd and 3rd address fields

> Found this as reported by client
>
> if just a number is put into the ..._address2 field, an error is returned,
> because at line 348 in the OpenSRS.pm file, it is doing a look for the
> string "address" as being a field that requires at least one alpha
> character. This error checking really shouldn't exist for address2 and
> address3, and the fix is just to add the 1 like so:
>
> if ($field =~ /first_name|last_name|org_name|address1|city|state/)
>
> Regards,
>
>
> Hostmaster [Beck Web Servers & Design]
> mailto:hostmaster@bwsd.com
> ================================



This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:35:31 EDT