Validate base_url in builder instead of expect() on every use #16
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Severity: Medium
src/actors.rs:122-126:ActorUrls::build()uses.expect("valid url")on fourUrl::parsecalls. These are constructed from a user-suppliedbase_urlstring. Ifbase_urlis malformed, these panic at runtime.The
actor_url()function insrc/urls.rs:39-42has the same problem.Fix: validate
base_urlonce at construction time in the builder and returnResult, not trust it blindly at every use site.