Skip to content

Commit

Permalink
ncp-web: allow commas
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Aug 14, 2017
1 parent 5ebeaf1 commit 7dde92a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ncp-web/ncp-launcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

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 ,
Expand Down

0 comments on commit 7dde92a

Please sign in to comment.