This is an automated email from the ASF dual-hosted git repository.

jfthomps pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/vcl.git

commit 7d725892a858afa7435a78399105ba1876406190
Author: Josh Thompson <[email protected]>
AuthorDate: Thu Mar 7 17:15:58 2024 -0500

    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)
---
 web/.ht-inc/utils.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/web/.ht-inc/utils.php b/web/.ht-inc/utils.php
index f9a36ac0..c2a1d0bf 100644
--- a/web/.ht-inc/utils.php
+++ b/web/.ht-inc/utils.php
@@ -10810,6 +10810,7 @@ function sendRDPfile() {
        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 @@ function validateAPIgroupInput($items, $exists) {
        }
        # 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: - _ . :');
                }

Reply via email to