diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 01:29:57 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 01:29:57 +0100 |
| commit | 4b2b4af606237def78273a42e881ae9f971cb505 (patch) | |
| tree | 47735062971b7dcddfbe3ad385ccbf2570fa6245 /src/copyparty/mod.rs | |
| parent | docker: install ImageMagick for image compress/convert (diff) | |
| download | senator-sperma-4b2b4af606237def78273a42e881ae9f971cb505.tar.gz senator-sperma-4b2b4af606237def78273a42e881ae9f971cb505.zip | |
net: block private and link-local URLs
Diffstat (limited to '')
| -rw-r--r-- | src/copyparty/mod.rs | 2 |
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 | }; |
