Skip to content

Commit 5520271

Browse files
committed
Datatype and regexes for PHP-CLI settings fixed
1 parent 549f717 commit 5520271

File tree

1 file changed

+36
-35
lines changed

1 file changed

+36
-35
lines changed

interface/web/admin/form/server_php.tform.php

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -250,45 +250,46 @@
250250
)
251251
);
252252
$form["tabs"]['php_cli'] = array (
253-
'title' => "PHP-CLI settings",
254-
'width' => 80,
255-
'template' => "templates/server_php_cli_edit.htm",
256-
'fields' => array(
257-
//#################################
258-
// Begin Datatable fields
259-
//#################################
260-
'php_cli_binary' => array(
261-
'datatype' => 'VARCHAR',
262-
'formtype' => 'TEXT',
263-
'validators' => array(
264-
0 => array (
265-
'type' => 'REGEX',
266-
'regex' => '/^\/[a-zA-Z0-9\/\-\_\ ]*$/',
267-
'errmsg'=> 'php_cli_binary_error_regex'
253+
'title' => "PHP-CLI settings",
254+
'width' => 80,
255+
'template' => "templates/server_php_cli_edit.htm",
256+
'fields' => array(
257+
//#################################
258+
// Begin Datatable fields
259+
//#################################
260+
'php_cli_binary' => array(
261+
'datatype' => 'VARCHAR',
262+
'formtype' => 'TEXT',
263+
'validators' => array(
264+
0 => array (
265+
'type' => 'REGEX',
266+
'regex' => '/^\/[a-zA-Z0-9\/\-\_\s]*$/',
267+
'errmsg'=> 'php_cli_binary_error_regex'
268+
),
268269
),
270+
'default' => '',
271+
'value' => '',
272+
'width' => '40',
273+
'maxlength' => '255'
269274
),
270-
'default' => '',
271-
'value' => '',
272-
'width' => '40',
273-
'maxlength' => '255'
274-
),
275-
'php_jk_section' => array(
276-
'datatype' => 'TEXT',
277-
'formtype' => 'TEXT',
278-
'default' => '',
279-
'validators' => array(
280-
0 => array (
281-
'type' => 'REGEX',
282-
'regex' => '/^[a-zA-Z0-9\-\_\ ]*$/',
283-
'errmsg'=> 'php_cli_jk_section_error_regex'
275+
'php_jk_section' => array(
276+
'datatype' => 'VARCHAR',
277+
'formtype' => 'TEXT',
278+
'default' => '',
279+
'validators' => array(
280+
0 => array (
281+
'type' => 'REGEX',
282+
'regex' => '/^[a-zA-Z0-9\-\_]*$/',
283+
'errmsg'=> 'php_cli_jk_section_error_regex'
284+
),
284285
),
286+
'value' => '',
287+
'width' => '40',
288+
'maxlength' => '255'
285289
),
286-
'value' => '',
287-
'width' => '40',
288-
'maxlength' => '255'
289-
),
290-
)
291-
);
290+
)
291+
);
292+
292293
$form["tabs"]['php_sort'] = array (
293294
'title' => "PHP Sort Priority",
294295
'width' => 80,

0 commit comments

Comments
 (0)