diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-08-14 12:23:14 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-08-14 12:23:14 +0300 |
commit | 7dde92aa8031ef500ee652454115beb26c846b43 (patch) | |
tree | 195c66c7037daf36ed5dfbabcc7810687cedb84a /ncp-web/ncp-launcher.php | |
parent | 5ebeaf12ec3d8c7c39030ae6e2530bf4339f45f3 (diff) |
ncp-web: allow commasv0.20.1
Diffstat (limited to 'ncp-web/ncp-launcher.php')
-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 , |