From cc3abddbad0af84154808356e50bea3d5f666de7 Mon Sep 17 00:00:00 2001 From: Linn Mattsson Date: Wed, 9 Oct 2024 16:16:55 +0200 Subject: [PATCH] Allow empty value for config values Fixed so config variables can pass an empty argument. Solves issue #1791. (cherry picked from commit dbb6ee4d70ce080b452791a5a6d0f7ec3ac78f91) --- unix/vncserver/vncserver.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/vncserver/vncserver.in b/unix/vncserver/vncserver.in index ebdd3a97ed..fdcce0e9c4 100755 --- a/unix/vncserver/vncserver.in +++ b/unix/vncserver/vncserver.in @@ -288,7 +288,7 @@ sub LoadConfig { if (open(IN, $configFile)) { while () { next if /^#/; - if (my ($k, $v) = /^\s*(\w+)\s*=\s*(.+)$/) { + if (my ($k, $v) = /^\s*(\w+)\s*=\s*(.*)$/) { $k = lc($k); # must normalize key case if ($warnoverride && $config{$k}) { print("Warning: $configFile is overriding previously defined '$k' to be '$v'\n");