From 4b2b4af606237def78273a42e881ae9f971cb505 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 01:29:57 +0100 Subject: net: block private and link-local URLs --- src/copyparty/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/copyparty') diff --git a/src/copyparty/mod.rs b/src/copyparty/mod.rs index dfc43dc..98db471 100644 --- a/src/copyparty/mod.rs +++ b/src/copyparty/mod.rs @@ -295,7 +295,7 @@ impl CopypartyClient { } /// Is `url` the same origin as the configured Copyparty base URL? - fn is_own_url(&self, url: &str) -> bool { + pub fn is_own_url(&self, url: &str) -> bool { let (Ok(candidate), Ok(base)) = (Url::parse(url), Url::parse(&self.base_url)) else { return false; }; -- cgit v1.2.3