From edd0b6ecaaaad9876b16715dc1cff89e094ebc28 Mon Sep 17 00:00:00 2001 From: El Date: Fri, 20 Feb 2026 19:42:29 +0000 Subject: [PATCH] VNC-151 Fix codec validation pattern --- unix/vncserver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/vncserver b/unix/vncserver index 4bd9388..19bfda9 100755 --- a/unix/vncserver +++ b/unix/vncserver @@ -2103,8 +2103,8 @@ sub DefineConfigToCLIConversion { KasmVNC::ConfigKey->new({ name => "encoding.video_streaming_mode.codec", validator => KasmVNC::PatternValidator->new({ - pattern => qr/^(auto|h264|h264_vaapi|h264_nvenc|avc|avc_vaapi|avc_nvenc|h265|h265_vaapi|h265_nvenc|hevc|hevc_vaapi|hevc_nvenc|av1_vaapi|av1_nvenc)(,(auto|h264|h264_vaapi|h264_nvenc|avc|avc_vaapi|avc_nvenc|h265|h265_vaapi|h265_nvenc|hevc|hevc_vaapi|hevc_nvenc|av1_vaapi|av1_nvenc))*$/, - errorMessage => "must be one of [auto, h264, h264_vaapi, h264_nvenc, avc, avc_vaapi, avc_nvenc, h265, h265_vaapi, h265_nvenc, hevc, hevc_vaapi, hevc_nvenc, av1_vaapi, av1_nvenc] or a comma-separated list of those values" + pattern => qr/^\w+(?:,\w+)*$/, + errorMessage => "must be a comma-separated list of codec names, without spaces" }) }) ]