utils.php:
-modified sendRDPfile: added "dynamic resolution:i:1" to contents of delivered RDP file
-modified validateAPIgroupInput: changed check and error message for name to allow name to be up to 60 chars in length (up from 30)
diff --git a/web/.ht-inc/utils.php b/web/.ht-inc/utils.php
index f9a36ac..c2a1d0b 100644
--- a/web/.ht-inc/utils.php
+++ b/web/.ht-inc/utils.php
@@ -10810,6 +10810,7 @@
print "disable themes:i:0\r\n";
print "disable cursor setting:i:0\r\n";
print "bitmapcachepersistenable:i:1\r\n";
+ print "dynamic resolution:i:1\r\n";
//print "connect to console:i:1\r\n";
}
@@ -13151,10 +13152,10 @@
}
# name
if(array_key_exists('name', $items)) {
- if(! preg_match('/^[-a-zA-Z0-9_\.: ]{3,30}$/', $items['name'])) {
+ if(! preg_match('/^[-a-zA-Z0-9_\.: ]{3,60}$/', $items['name'])) {
return array('status' => 'error',
'errorcode' => 19,
- 'errormsg' => 'Name must be between 3 and 30 characters '
+ 'errormsg' => 'Name must be between 3 and 60 characters '
. 'and can only contain letters, numbers, and '
. 'these characters: - _ . :');
}