diff options
Diffstat (limited to 'ncp-web')
-rw-r--r-- | ncp-web/ncp-launcher.php | 2 | ||||
-rw-r--r-- | ncp-web/wizard/JS/wizard.js | 4 |
2 files changed, 3 insertions, 3 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 diff --git a/ncp-web/wizard/JS/wizard.js b/ncp-web/wizard/JS/wizard.js index 8f0c4bbe..0446257c 100644 --- a/ncp-web/wizard/JS/wizard.js +++ b/ncp-web/wizard/JS/wizard.js @@ -247,7 +247,7 @@ $(document).ready(function(){ // Enable FreeDNS step $('#ddns-enable-freedns').on('click', function(){ - launch_action( 'freeDNS', + launch_action( 'DDNS_freeDNS', { "ACTIVE":"yes", "DOMAIN": $("#ddns-domain" ).val(), @@ -269,7 +269,7 @@ $(document).ready(function(){ // Enable noip step $('#ddns-enable-noip').on('click', function(){ - launch_action( 'no-ip', + launch_action( 'DDNS_no-ip', { "ACTIVE":"yes", "DOMAIN": $("#ddns-domain" ).val(), |