Skip to content

Commit e2ce435

Browse files
committed
Fixed: FS#1004 - an umlaut in ssl_organisation kills vhost processing
1 parent 2f1ecfb commit e2ce435

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@
249249
'ssl_state' => array (
250250
'datatype' => 'VARCHAR',
251251
'formtype' => 'TEXT',
252+
'validators' => array ( 0 => array ( 'type' => 'REGEX',
253+
'regex' => '/^[a-zA-Z0-9\ \.\-\_\,]{1,255}$/',
254+
'errmsg'=> 'ssl_state_error_regex'),
255+
),
252256
'default' => '',
253257
'value' => '',
254258
'width' => '30',
@@ -257,6 +261,10 @@
257261
'ssl_locality' => array (
258262
'datatype' => 'VARCHAR',
259263
'formtype' => 'TEXT',
264+
'validators' => array ( 0 => array ( 'type' => 'REGEX',
265+
'regex' => '/^[a-zA-Z0-9\ \.\-\_\,]{1,255}$/',
266+
'errmsg'=> 'ssl_locality_error_regex'),
267+
),
260268
'default' => '',
261269
'value' => '',
262270
'width' => '30',
@@ -265,6 +273,10 @@
265273
'ssl_organisation' => array (
266274
'datatype' => 'VARCHAR',
267275
'formtype' => 'TEXT',
276+
'validators' => array ( 0 => array ( 'type' => 'REGEX',
277+
'regex' => '/^[a-zA-Z0-9\ \.\-\_\,]{1,255}$/',
278+
'errmsg'=> 'ssl_organisation_error_regex'),
279+
),
268280
'default' => '',
269281
'value' => '',
270282
'width' => '30',
@@ -273,6 +285,10 @@
273285
'ssl_organisation_unit' => array (
274286
'datatype' => 'VARCHAR',
275287
'formtype' => 'TEXT',
288+
'validators' => array ( 0 => array ( 'type' => 'REGEX',
289+
'regex' => '/^[a-zA-Z0-9\ \.\-\_\,]{1,255}$/',
290+
'errmsg'=> 'ssl_organistaion_unit_error_regex'),
291+
),
276292
'default' => '',
277293
'value' => '',
278294
'width' => '30',
@@ -281,6 +297,10 @@
281297
'ssl_country' => array (
282298
'datatype' => 'VARCHAR',
283299
'formtype' => 'TEXT',
300+
'validators' => array ( 0 => array ( 'type' => 'REGEX',
301+
'regex' => '/^[A-Z]{2,2}$/',
302+
'errmsg'=> 'ssl_country_error_regex'),
303+
),
284304
'default' => '',
285305
'value' => '',
286306
'width' => '2',

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@ $wb["client_group_id_txt"] = 'Client';
4949
$wb["stats_password_txt"] = 'Webstatistics password';
5050
$wb["allow_override_txt"] = 'Allow Override';
5151
$wb["limit_web_quota_free_txt"] = 'Max. available Harddisk Quota';
52+
$wb["ssl_state_error_regex"] = 'Invalid SSL State. Valid characters are: a-z, 0-9 and .,-_';
53+
$wb["ssl_locality_error_regex"] = 'Invalid SSL Locality. Valid characters are: a-z, 0-9 and .,-_';
54+
$wb["ssl_organisation_error_regex"] = 'Invalid SSL Organisation. Valid characters are: a-z, 0-9 and .,-_';
55+
$wb["ssl_organistaion_unit_error_regex"] = 'Invalid SSL Organisation Unit. Valid characters are: a-z, 0-9 and .,-_';
56+
$wb["ssl_country_error_regex"] = 'Invalid SSL Country. Valid characters are: A-Z';
57+
5258
?>

0 commit comments

Comments
 (0)