From 8d3f4f5e1d1b9447c573fc8ed10c9bff9016b1b9 Mon Sep 17 00:00:00 2001 From: Philipp Mundhenk Date: Sun, 26 May 2024 17:04:32 +0200 Subject: [PATCH 1/2] introduced SensitiveString handling --- plugins/proxy-auth/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/proxy-auth/index.php b/plugins/proxy-auth/index.php index ec0a40f6b..1f17f32b2 100644 --- a/plugins/proxy-auth/index.php +++ b/plugins/proxy-auth/index.php @@ -118,7 +118,7 @@ class ProxyAuthPlugin extends \RainLoop\Plugins\AbstractPlugin if ($sProxyRequest) { /* create master user login from remote user header and settings */ $sEmail = $sRemoteUser . $sMasterSeparator . $sMasterUser; - $sPassword = \trim($this->Config()->getDecrypted('plugin', 'master_password', '')); + $sPassword = new \SnappyMail\SensitiveString(\trim($this->Config()->getDecrypted('plugin', 'master_password', ''))); try { From 6ef339008062c0cfddb627fb197a08c0f55d068b Mon Sep 17 00:00:00 2001 From: Philipp Mundhenk Date: Sun, 26 May 2024 17:14:58 +0200 Subject: [PATCH 2/2] adding support for snappymail in subdirectories --- plugins/proxy-auth/js/auto-login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/proxy-auth/js/auto-login.js b/plugins/proxy-auth/js/auto-login.js index 6d2c72b1c..ba5e0e617 100644 --- a/plugins/proxy-auth/js/auto-login.js +++ b/plugins/proxy-auth/js/auto-login.js @@ -11,11 +11,11 @@ ForwardProxyAuth = () => { if (auto_login) { var xhr = new XMLHttpRequest(); - xhr.open("GET", "/?UserHeaderSet", true); + xhr.open("GET", "?UserHeaderSet", true); xhr.onreadystatechange = function () { if (xhr.readyState == 4 && xhr.status == 200) { - window.location.href = "/?ProxyAuth"; + window.location.href = "?ProxyAuth"; } };