From 0cceac74aeaec10ec499c035762dfc15184b4c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 10 Oct 2023 14:27:46 +0200 Subject: [PATCH] fix: Properly pass argument MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- proxy.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy.php b/proxy.php index 41dd97e..4d816fd 100644 --- a/proxy.php +++ b/proxy.php @@ -82,7 +82,8 @@ function startCoolwsd() $remoteFontConfig = ""; if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') { - $remoteFontConfig = "--o:remote_font_config.url=https://" . $_SERVER['HTTP_HOST'] . preg_replace("/richdocumentscode.*$/", "richdocuments/settings/fonts.json", $_SERVER['REQUEST_URI']); + $remoteFontConfigUrl = escapeshellarg("https://" . $_SERVER['HTTP_HOST'] . preg_replace("/richdocumentscode.*$/", "richdocuments/settings/fonts.json", $_SERVER['REQUEST_URI'])); + $remoteFontConfig = "--o:remote_font_config.url=" . $remoteFontConfigUrl; } // Extract the AppImage if FUSE is not available