You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SafeUrl::parse rejects some ambiguous credentials that url::Url::parse accepts, so callers that need the latter's parsing behavior use url::Url directly. Add SafeUrl::parse_relaxed and use it for configured endpoints, proxy URLs, and file URL parsing. The method returns url::ParseError for invalid URLs and skips the ambiguous-credentials check. Credentials interpreted as part of a path or fragment are not redacted when formatted.
⚠️8 benchmarks spent significant time in system calls
System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.
No successful run was found on zaniebot/safe-url-auth-20261015 (274ce6c) during the generation of this report, so 6a6e2af was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internalA refactor or improvement that is not user-facing
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SafeUrl::parserejects some ambiguous credentials thaturl::Url::parseaccepts, so callers that need the latter's parsing behavior useurl::Urldirectly. AddSafeUrl::parse_relaxedand use it for configured endpoints, proxy URLs, and file URL parsing. The method returnsurl::ParseErrorfor invalid URLs and skips the ambiguous-credentials check. Credentials interpreted as part of a path or fragment are not redacted when formatted.Stacked on #2771 (astral-sh#22602).