diff options
author | Simon Rettberg | 2022-05-19 13:53:16 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-05-19 13:53:16 +0200 |
commit | 6bc99f8e63e912f79ffb122a857ff1b00d42bf98 (patch) | |
tree | 9c313f131da501a1705b9f136ecb7f6a357f32f4 /core/modules/kiosk-chromium | |
parent | [hardware-stats] Add comment regarding usage of ~screens event (diff) | |
download | mltk-6bc99f8e63e912f79ffb122a857ff1b00d42bf98.tar.gz mltk-6bc99f8e63e912f79ffb122a857ff1b00d42bf98.tar.xz mltk-6bc99f8e63e912f79ffb122a857ff1b00d42bf98.zip |
[kiosk-chromium] Consider whitespace-only blacklist as empty
.... and then interpret this as "*".
Diffstat (limited to 'core/modules/kiosk-chromium')
-rw-r--r-- | core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/10-chromium-urlfilter | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/10-chromium-urlfilter b/core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/10-chromium-urlfilter index 00aa9556..0abb8832 100644 --- a/core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/10-chromium-urlfilter +++ b/core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/10-chromium-urlfilter @@ -67,7 +67,8 @@ main() { rm -f -- "$url_policy_file" return fi - if [ -z "$SLX_BROWSER_BLACKLIST" ]; then + re='^\s*$' + if [[ $SLX_BROWSER_BLACKLIST =~ $re ]]; then SLX_BROWSER_BLACKLIST="*" fi # Create file |