aboutsummaryrefslogtreecommitdiffstats
path: root/src/copyparty
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 01:29:57 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 01:29:57 +0100
commit4b2b4af606237def78273a42e881ae9f971cb505 (patch)
tree47735062971b7dcddfbe3ad385ccbf2570fa6245 /src/copyparty
parentdocker: install ImageMagick for image compress/convert (diff)
downloadsenator-sperma-4b2b4af606237def78273a42e881ae9f971cb505.tar.gz
senator-sperma-4b2b4af606237def78273a42e881ae9f971cb505.zip
net: block private and link-local URLs
Diffstat (limited to 'src/copyparty')
-rw-r--r--src/copyparty/mod.rs2
1 files changed, 1 insertions, 1 deletions
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 {
295 } 295 }
296 296
297 /// Is `url` the same origin as the configured Copyparty base URL? 297 /// Is `url` the same origin as the configured Copyparty base URL?
298 fn is_own_url(&self, url: &str) -> bool { 298 pub fn is_own_url(&self, url: &str) -> bool {
299 let (Ok(candidate), Ok(base)) = (Url::parse(url), Url::parse(&self.base_url)) else { 299 let (Ok(candidate), Ok(base)) = (Url::parse(url), Url::parse(&self.base_url)) else {
300 return false; 300 return false;
301 }; 301 };