From 3dda9b01ad2ab5bce0e85716cf200f4325b4a4c5 Mon Sep 17 00:00:00 2001 From: James Vance Date: Tue, 21 Nov 2023 08:12:47 -0600 Subject: [PATCH] Update regex in ReadSettingFromFile to parse setting values with spaces. --- www/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common.php b/www/common.php index 8823323a9..0830d77c0 100644 --- a/www/common.php +++ b/www/common.php @@ -102,7 +102,7 @@ function ReadSettingFromFile($settingName, $plugin = "") } if (!empty($settingsStr)) { if (preg_match("/^" . $settingName . "/m", $settingsStr)) { - $result = preg_match("/^" . $settingName . "\s*=(\s*\S*\w*)/m", $settingsStr, $output_array); + $result = preg_match("/^" . $settingName . "\s*=(.+)/m", $settingsStr, $output_array); if ($result == 0) { // error_log("The setting " . $settingName . " could not be found in " . $filename); return false;