Fixed: FS#875 - SRV Records need validation
| | |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', |
| | | 'errmsg'=> 'data_error_empty'), |
| | | 1 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^[\w\.\-]{0,64}\s[\w\.\-]{0,64}\s[\w\.\-]{0,64}$/', |
| | | 'errmsg'=> 'srv_error_regex'), |
| | | ), |
| | | 'default' => '', |
| | | 'value' => '', |
| | |
| | | $wb["name_error_regex"] = 'The hostname has the wrong format.'; |
| | | $wb["data_error_empty"] = 'Server record empty'; |
| | | $wb["data_error_regex"] = 'Server record format invalid'; |
| | | $wb["srv_error_regex"] = 'Invalid server record format. The server record must contain 3 text strings separated by spaces.'; |
| | | ?> |