From 7dde92aa8031ef500ee652454115beb26c846b43 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Mon, 14 Aug 2017 11:23:14 +0200 Subject: ncp-web: allow commas --- ncp-web/ncp-launcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ncp-web') 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 , -- cgit v1.2.3