diff options
-rw-r--r-- | ncp-web/ncp-launcher.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ncp-web/ncp-launcher.php b/ncp-web/ncp-launcher.php index 2038cc61..f410640b 100644 --- a/ncp-web/ncp-launcher.php +++ b/ncp-web/ncp-launcher.php @@ -82,7 +82,7 @@ else if ( $_POST['action'] == "launch" && $_POST['config'] ) foreach( $params as $name => $value) { - preg_match( '/^[\w.@_\/-]+$/' , $value , $matches ) + preg_match( '/^[\w.,@_\/-]+$/' , $value , $matches ) or exit( '{ "output": "Invalid input" , "token": "' . getCSRFToken() . '" }' ); $code = preg_replace( '/\n' . $name . '_=.*' . PHP_EOL . '/' , PHP_EOL . $name . '_=' . $value . PHP_EOL , |