Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ncp-web/ncp-launcher.php')
-rw-r--r--ncp-web/ncp-launcher.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ncp-web/ncp-launcher.php b/ncp-web/ncp-launcher.php
index 35fe2f7b..9fca90c4 100644
--- a/ncp-web/ncp-launcher.php
+++ b/ncp-web/ncp-launcher.php
@@ -95,7 +95,7 @@ else if ( $_POST['action'] == "launch" && $_POST['config'] )
// sanity checks
if ( !$_POST['ref'] ) exit( '{ "output": "Invalid request" }' );
- preg_match( '/^[0-9A-Za-z-]+$/' , $_POST['ref'] , $matches )
+ preg_match( '/^[0-9A-Za-z_-]+$/' , $_POST['ref'] , $matches )
or exit( '{ "output": "Invalid input" , "token": "' . getCSRFToken() . '" }' );
// CSRF check