Skip to content

Commit 2c0812a

Browse files
committed
- Allow & in SSL certificates (like in "MeineFirma GmbH & Co. KG").
1 parent dd13201 commit 2c0812a

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

interface/web/sites/form/web_domain.tform.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@
343343
'datatype' => 'VARCHAR',
344344
'formtype' => 'TEXT',
345345
'validators' => array ( 0 => array ( 'type' => 'REGEX',
346-
'regex' => '/^(([\.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/',
346+
'regex' => '/^(([\.]{0})|([-a-zA-Z0-9._,& ]{1,255}))$/',
347347
'errmsg'=> 'ssl_state_error_regex'),
348348
),
349349
'default' => '',
@@ -355,7 +355,7 @@
355355
'datatype' => 'VARCHAR',
356356
'formtype' => 'TEXT',
357357
'validators' => array ( 0 => array ( 'type' => 'REGEX',
358-
'regex' => '/^(([\.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/',
358+
'regex' => '/^(([\.]{0})|([-a-zA-Z0-9._,& ]{1,255}))$/',
359359
'errmsg'=> 'ssl_locality_error_regex'),
360360
),
361361
'default' => '',
@@ -367,7 +367,7 @@
367367
'datatype' => 'VARCHAR',
368368
'formtype' => 'TEXT',
369369
'validators' => array ( 0 => array ( 'type' => 'REGEX',
370-
'regex' => '/^(([\.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/',
370+
'regex' => '/^(([\.]{0})|([-a-zA-Z0-9._,& ]{1,255}))$/',
371371
'errmsg'=> 'ssl_organisation_error_regex'),
372372
),
373373
'default' => '',
@@ -379,7 +379,7 @@
379379
'datatype' => 'VARCHAR',
380380
'formtype' => 'TEXT',
381381
'validators' => array ( 0 => array ( 'type' => 'REGEX',
382-
'regex' => '/^(([\.]{0})|([a-zA-Z0-9\ \.\-\_\,]{1,255}))$/',
382+
'regex' => '/^(([\.]{0})|([-a-zA-Z0-9._,& ]{1,255}))$/',
383383
'errmsg'=> 'ssl_organistaion_unit_error_regex'),
384384
),
385385
'default' => '',

interface/web/sites/lib/lang/de_web_domain.lng

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ $wb['stats_password_txt'] = 'Webstatistik Passwort';
5252
$wb['ssl_domain_txt'] = 'SSL Domain';
5353
$wb['allow_override_txt'] = 'Allow Override';
5454
$wb['limit_web_quota_free_txt'] = 'Max. mögliche Speicherplatzbeschränkung';
55-
$wb['ssl_state_error_regex'] = 'Ungültiges SSL-Bundesland. Gültige Zeichen sind: a-z, 0-9 und .,-_';
56-
$wb['ssl_locality_error_regex'] = 'Ungültiger SSL-Ort. Gülige Zeichen sind: a-z, 0-9 und .,-_';
57-
$wb['ssl_organisation_error_regex'] = 'Ungültige SSL-Firma. Gültige Zeichen sind: a-z, 0-9 und .,-_';
58-
$wb['ssl_organistaion_unit_error_regex'] = 'Ungültige SSL-Abteilung. Gültige Zeichen sind: a-z, 0-9 und .,-_';
55+
$wb['ssl_state_error_regex'] = 'Ungültiges SSL-Bundesland. Gültige Zeichen sind: a-z, 0-9 und .,-_&';
56+
$wb['ssl_locality_error_regex'] = 'Ungültiger SSL-Ort. Gülige Zeichen sind: a-z, 0-9 und .,-_&';
57+
$wb['ssl_organisation_error_regex'] = 'Ungültige SSL-Firma. Gültige Zeichen sind: a-z, 0-9 und .,-_&';
58+
$wb['ssl_organistaion_unit_error_regex'] = 'Ungültige SSL-Abteilung. Gültige Zeichen sind: a-z, 0-9 und .,-_&';
5959
$wb['ssl_country_error_regex'] = 'Ungültiges SSL-Land. Gültige Zeichen sind: A-Z';
6060
$wb['limit_traffic_quota_free_txt'] = 'Max. mögliche Transfervolumenbeschränkung';
6161
$wb['redirect_error_regex'] = 'Ungültiger Weiterleitungspfad. Gültige Angaben sind beispielsweise: /test/ oder http://www.domain.tld/test/';

interface/web/sites/lib/lang/en_web_domain.lng

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ $wb["client_group_id_txt"] = 'Client';
5656
$wb["stats_password_txt"] = 'Set Webstatistics password';
5757
$wb["allow_override_txt"] = 'Apache AllowOverride';
5858
$wb["limit_web_quota_free_txt"] = 'Max. available Harddisk Quota';
59-
$wb["ssl_state_error_regex"] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_';
60-
$wb["ssl_locality_error_regex"] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_';
61-
$wb["ssl_organisation_error_regex"] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_';
62-
$wb["ssl_organistaion_unit_error_regex"] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_';
59+
$wb["ssl_state_error_regex"] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_&';
60+
$wb["ssl_locality_error_regex"] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_&';
61+
$wb["ssl_organisation_error_regex"] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_&';
62+
$wb["ssl_organistaion_unit_error_regex"] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_&';
6363
$wb["ssl_country_error_regex"] = 'Invalid SSL Country. Valid characters are: A-Z';
6464
$wb["limit_traffic_quota_free_txt"] = 'Max. available Traffic Quota';
6565
$wb["redirect_error_regex"] = 'Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/';

0 commit comments

Comments
 (0)