From 1098e970f23b49f76d1698fdddcf2b66117b16e2 Mon Sep 17 00:00:00 2001 From: IAmTomahawkx Date: Wed, 6 May 2026 21:32:34 -0700 Subject: [PATCH] fix: actually check redirect urls kind of the whole point of this thing. --- crates/services/january/src/requests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/services/january/src/requests.rs b/crates/services/january/src/requests.rs index 549aa136..bec5bc1d 100644 --- a/crates/services/january/src/requests.rs +++ b/crates/services/january/src/requests.rs @@ -293,7 +293,10 @@ impl Request { if let Some(location) = response.headers().get("location") { let location = location.to_str().map_err(|_| create_error!(ProxyError))?; url = Url::from_str(location).to_internal_error()?; - continue; + + if !Request::url_is_blacklisted(&url).await? { + continue; + } } else { return Err(create_error!(ProxyError)); }