Form Validation Forum :: .travel not validated correctly

This thread was displayed: 47 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
Lee ReynoldsTeam InterAKT member
01-10-2007 19:19:27 GMT +2

Just had a report from a user of one of our admin tools that the URL validation will not support .travel TLDs. Is there a page of code I can add this validation to?

Thanks -LR

Back | Reply | Quote | Top
Razvan Racasanu[InterAKT]Adobe Systems Romania staff
01-12-2007 16:34:43 GMT +2

Hello,

To do this, you need to edit the file /includes/tng/triggers/tNG_FormValidation.class.php and on line 138 replace this line:

$arr["text"]['url']['regexp'] = '/^http(s)?:\/\/([0-9a-z-_]+\.)+[a-z]{2,4}((\/|\\\\)[0-9a-z-_\/\.]*)?$/i';

with this one:

$arr["text"]['url']['regexp'] = '/^http(s)?:\/\/([0-9a-z-_]+\.)+[a-z]{2,6}((\/|\\\\)[0-9a-z-_\/\.]*)?$/i';

Regards,
Razvan RACASANU

Reply | Quote | Top
© Adobe Systems Romania. All rights reserved.