Dont allow localhost or raw IPs in activitypub IDs (ref #1221) #116
Loading…
Reference in New Issue
No description provided.
Delete Branch "disallow-localhost-urls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -74,1 +75,4 @@
let host = apub_id.host_str().context(location_info!())?;
let host_as_ip = host.parse::<IpAddr>();
if host == "localhost" || host_as_ip.is_ok() {
I spose the tests will fail if this doesn't work as it should.