From dbb6ee4d70ce080b452791a5a6d0f7ec3ac78f91 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. --- 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 ebdd3a97..fdcce0e9 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"); -- 2.39.5