Allow underscore cname [RESOLVED]

Discussion in 'General' started by WebTiago, Jan 26, 2016.

  1. WebTiago

    WebTiago New Member

    Last edited: Jan 26, 2016
  2. Farsus

    Farsus Member

    Read careful it says due in 3.1
    and 3.1 are not yet public
     
  3. florian030

    florian030 Well-Known Member HowtoForge Supporter

    WebTiago likes this.
  4. WebTiago

    WebTiago New Member

  5. florian030

    florian030 Well-Known Member HowtoForge Supporter

    Did you change the regex after 'data' => array ( ?
     
    WebTiago likes this.
  6. WebTiago

    WebTiago New Member

    Yes, look:

    Code:
                    'data' => 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' => 'NOTEMPTY',
                                            'errmsg'=> 'data_error_empty'),
                                    1 => array ( 'type' => 'REGEX',
                                            'regex' => '/^[a-zA-Z0-9\.\-\_]{1,255}$/',
                                            'errmsg'=> 'data_error_regex'),
    
     
  7. florian030

    florian030 Well-Known Member HowtoForge Supporter

    I checked this with current p8. I can add a CNAME with Host: check.com. and Target _check.com.
     
    etruel likes this.
  8. WebTiago

    WebTiago New Member

    Thanks, changed in the 'name' field and it worked! Thank you!
     
    etruel likes this.

Share This Page