🔃 Sync Hub v0.8.1 + CSS fixes + Empty settings sanity check + JSON linting + docs

This commit is contained in:
jokob-sk
2024-06-08 18:01:58 +10:00
parent bbd69c60bf
commit 1d525cb84c
41 changed files with 8979 additions and 9066 deletions

View File

@@ -327,6 +327,13 @@ function saveSettings()
$settingType = $setting[2];
$settingValue = $setting[3];
// sanity check
if($settingKey == "UI_LANG" && $settingValue == "")
{
echo "🔴 Error: important settings missing. Refresh the page with 🔃 on the top and try again.";
return;
}
if ($group == $settingGroup) {
if ($settingType == 'text' || $settingType == 'password' || $settingType == 'password.SHA256' || $settingType == 'readonly' || $settingType == 'text.select') {
$val = encode_single_quotes($settingValue);