[X2Go-Commits] [live-build-x2go] 26/60: homepage-url-filter needs to parse %7C as "|"

git-admin at x2go.org git-admin at x2go.org
Mon Nov 28 19:43:49 CET 2022


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/mate-minidesktop-buster
in repository live-build-x2go.

commit c040fc213e89b35fcb1db9ff651b316c95e2a864
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Mon Jun 22 20:34:13 2020 +0200

    homepage-url-filter needs to parse %7C as "|"
---
 config/includes.chroot/lib/live/config/2900-firefox-config | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/config/includes.chroot/lib/live/config/2900-firefox-config b/config/includes.chroot/lib/live/config/2900-firefox-config
index 18acfb6..aec8a7e 100755
--- a/config/includes.chroot/lib/live/config/2900-firefox-config
+++ b/config/includes.chroot/lib/live/config/2900-firefox-config
@@ -1,5 +1,9 @@
 #!/bin/sh
 
+function urldecode() {
+	        : "${*//+/ }"; echo -e "${_//%/\\x}";
+	}
+
 FirefoxConfig ()
 {
 	# Output startup message
@@ -10,6 +14,8 @@ FirefoxConfig ()
 		      awk -F'=' ' /^homepageurl=/ { print $2 } ')
 	if [ -z "$HOMEPAGEURL" ] ; then 
 		HOMEPAGEURL='http://www.x2go.org/'
+	else
+		HOMEPAGEURL=$(echo -e "$(urldecode "$HOMEPAGEURL")")
 	fi
 	sed -i	-e '/"browser.rights.3.shown"/d' \
 		-e '/"browser.startup.homepage_override.mstone"/d' \

--
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