[X2Go-Commits] [live-build-x2go] 11/14: sanitize input
git-admin at x2go.org
git-admin at x2go.org
Mon Jan 29 22:51:40 CET 2024
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch heuler/mate-minidesktop-bookworm
in repository live-build-x2go.
commit b5438d7dc8b0ee0a665e1c6352d5cc087a13ca00
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date: Fri Jan 26 19:20:16 2024 +0100
sanitize input
---
.../etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right
index 7e4b460..960f9a5 100755
--- a/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right
+++ b/config/includes.chroot/etc/x2go/x2gothinclient_init.d/940_x2gothinclient-align-right
@@ -3,6 +3,11 @@
WINDOWWIDTH=$(cat /proc/cmdline | tr ' ' '\n' | awk -F'=' '"windowwidth"==$1 {print $2}' | tr -dc '0-9')
+# sanitize input
+if [ $WINDOWWIDTH -lt 0 ] || [ $WINDOWWIDTH -gt 101 ]; then
+ unset $WINDOWWIDTH
+fi
+
# default to 50(%) if unset
if [ -z "$WINDOWWIDTH" ]; then
WINDOWWIDTH=50"
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git
More information about the x2go-commits
mailing list