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) <kont...@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 _______________________________________________ x2go-commits mailing list x2go-commits@lists.x2go.org https://lists.x2go.org/listinfo/x2go-commits