From 8c1761c64a5c6a24575f43e5afe7a1661cb7f34f Mon Sep 17 00:00:00 2001 From: mcramer <m.cramer@pixcept.de> Date: Wed, 26 Sep 2012 14:18:20 -0400 Subject: [PATCH] Implemented: FS#1102 - Convert internationalized domains to punycode automatically - need to have the pecl idn and intl modules installed or - have the idna_convert class in the classes/idn/ path --- interface/web/sites/form/web_domain.tform.php | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/interface/web/sites/form/web_domain.tform.php b/interface/web/sites/form/web_domain.tform.php index 673662f..6b1d7f7 100644 --- a/interface/web/sites/form/web_domain.tform.php +++ b/interface/web/sites/form/web_domain.tform.php @@ -119,14 +119,18 @@ 'domain' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', + 'filters' => array( 0 => array( 'event' => 'SAVE', + 'type' => 'IDNTOASCII'), + 1 => array( 'event' => 'SHOW', + 'type' => 'IDNTOUTF8'), + 2 => array( 'event' => 'SAVE', + 'type' => 'TOLOWER') + ), 'validators' => array ( 0 => array ( 'type' => 'CUSTOM', 'class' => 'validate_domain', 'function' => 'web_domain', 'errmsg'=> 'domain_error_regex'), ), - 'filters' => array ( 0 => array ( 'event' => 'SAVE', - 'type' => 'TOLOWER'), - ), 'default' => '', 'value' => '', 'width' => '30', -- Gitblit v1.9.1