1
0
Fork 0

fix trailing slash not being removed from domain

Dieser Commit ist enthalten in:
BlockListed 2023-02-07 13:03:28 +01:00
Ursprung a72d0b518f
Commit 679bc7a59b
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 2D204777C477B588

Datei anzeigen

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