vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 679bc7a59b5daef65ef7916474577106a46fa0e9
parent a72d0b518fa96ba63c4029f0c60e6bd53cd92661
Author: BlockListed <44610569+BlockListed@users.noreply.github.com>
Date:   Tue,  7 Feb 2023 13:03:28 +0100

fix trailing slash not being removed from domain

Diffstat:
Msrc/auth.rs | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/auth.rs b/src/auth.rs @@ -283,7 +283,8 @@ impl<'r> FromRequest<'r> for Host { // Get host let host = if CONFIG.domain_set() { - CONFIG.domain() + // Remove trailing slash if it exists since we're getting a host + CONFIG.domain().trim_end_matches('/').to_string() } else if let Some(referer) = headers.get_one("Referer") { referer.to_string() } else {