Fixed: FS#2065 - Web Aliasdomain Error Invalid redirect path...
5 files modified
1 files deleted
| | |
| | | case 'DATETSTAMP': |
| | | if ($record[$key] > 0) { |
| | | // is value int? |
| | | if (preg_match("/^[0-9]+[.]?[0-9]*$/", $record[$key], $p)) { |
| | | if (preg_match("/^[0-9]+[\.]?[0-9]*$/", $record[$key], $p)) { |
| | | $record[$key] = date($this->lng('conf_format_dateshort'), $record[$key]); |
| | | } else { |
| | | $record[$key] = date($this->lng('conf_format_dateshort'), strtotime($record[$key])); |
| | |
| | | case 'DATE': |
| | | if ($record[$key] > 0) { |
| | | // is value int? |
| | | if (preg_match("/^[0-9]+[.]?[0-9]*$/", $record[$key], $p)) { |
| | | if (preg_match("/^[0-9]+[\.]?[0-9]*$/", $record[$key], $p)) { |
| | | $record[$key] = date($this->lng('conf_format_dateshort'), $record[$key]); |
| | | } else { |
| | | $record[$key] = date($this->lng('conf_format_dateshort'), strtotime($record[$key])); |
| | |
| | | case 'DATETIME': |
| | | if ($record[$key] > 0) { |
| | | // is value int? |
| | | if (preg_match("/^[0-9]+[.]?[0-9]*$/", $record[$key], $p)) { |
| | | if (preg_match("/^[0-9]+[\.]?[0-9]*$/", $record[$key], $p)) { |
| | | $record[$key] = date($this->lng('conf_format_datetime'), $record[$key]); |
| | | } else { |
| | | $record[$key] = date($this->lng('conf_format_datetime'), strtotime($record[$key])); |
| | |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?\~]*(\?\S+)?)?)?)|(\[scheme\]://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?\~]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@', |
| | | 'regex' => '@^(([\.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?\~]*(\?\S+)?)?)?)|(\[scheme\]://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?\~]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@', |
| | | 'errmsg'=> 'redirect_error_regex'), |
| | | ), |
| | | 'default' => '', |
| | |
| | | 'redirect_path' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\,\-\+\?\~]*(\?\S+)?)?)?)|(\[scheme\]://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?\~]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@', |
| | | 'regex' => '@^(([\.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\,\-\+\?\~]*(\?\S+)?)?)?)|(\[scheme\]://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?\~]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@', |
| | | 'errmsg'=> 'redirect_error_regex'), |
| | | ), |
| | | 'formtype' => 'TEXT', |
| | |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^(([.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/', |
| | | 'regex' => '/^(([\.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/', |
| | | 'errmsg'=> 'ssl_state_error_regex'), |
| | | ), |
| | | 'default' => '', |
| | |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^(([.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/', |
| | | 'regex' => '/^(([\.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/', |
| | | 'errmsg'=> 'ssl_locality_error_regex'), |
| | | ), |
| | | 'default' => '', |
| | |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^(([.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/', |
| | | 'regex' => '/^(([\.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/', |
| | | 'errmsg'=> 'ssl_organisation_error_regex'), |
| | | ), |
| | | 'default' => '', |
| | |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^(([.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/', |
| | | 'regex' => '/^(([\.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/', |
| | | 'errmsg'=> 'ssl_organistaion_unit_error_regex'), |
| | | ), |
| | | 'default' => '', |
| | |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '/^(([.]{0})|([A-Z]{2,2}))$/', |
| | | 'regex' => '/^(([\.]{0})|([A-Z]{2,2}))$/', |
| | | 'errmsg'=> 'ssl_country_error_regex'), |
| | | ), |
| | | 'default' => '', |
| | |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | | 'validators' => array ( 0 => array ( 'type' => 'REGEX', |
| | | 'regex' => '@^(([.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?\~]*(\?\S+)?)?)?)|(\[scheme\]://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?\~]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@', |
| | | 'regex' => '@^(([\.]{0})|(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?\~]*(\?\S+)?)?)?)|(\[scheme\]://([-\w\.]+)+(:\d+)?(/([\w/_\.\-\,\+\?\~]*(\?\S+)?)?)?)|(/[\w/_\.\-]{1,255}/))$@', |
| | | 'errmsg'=> 'redirect_error_regex'), |
| | | ), |
| | | 'default' => '', |
| | |
| | | $params = array( |
| | | 'server_id' => 1, |
| | | 'type' => 'mysql', |
| | | 'database_name' => 'db_name1', |
| | | 'database_user' => 'db_name1', |
| | | 'database_password' => 'db_name1', |
| | | 'database_name' => 'db_name2', |
| | | 'database_user' => 'db_name2', |
| | | 'database_password' => 'db_name2', |
| | | 'database_charset' => 'UTF8', |
| | | 'remote_access' => 'n', |
| | | 'remote_access' => 'y', |
| | | 'remote_ips' => '', |
| | | 'active' => 'y' |
| | | ); |