We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to the documentation the FilterUrl event should be raised every time a URL is sanitized:
Occurs when a URL is being sanitized
However if the URL to sanitize is relative, and a baseUrl is used as sanitization parameter, the URL filters are not invoked.
See code line: https://github.com/mganss/HtmlSanitizer/blob/v8.0.843/src/HtmlSanitizer/HtmlSanitizer.cs#L856
There is a return statement before OnFilteringUrl is invoked: return new Uri(baseUri, iri.Value).AbsoluteUri;
return new Uri(baseUri, iri.Value).AbsoluteUri;
The text was updated successfully, but these errors were encountered:
7d6fc5e
Call OnFilteringUrl for relative URL (fixes #542)
841812c
Great catch, thank you!
Sorry, something went wrong.
No branches or pull requests
According to the documentation the FilterUrl event should be raised every time a URL is sanitized:
However if the URL to sanitize is relative, and a baseUrl is used as sanitization parameter, the URL filters are not invoked.
See code line: https://github.com/mganss/HtmlSanitizer/blob/v8.0.843/src/HtmlSanitizer/HtmlSanitizer.cs#L856
There is a return statement before OnFilteringUrl is invoked:
return new Uri(baseUri, iri.Value).AbsoluteUri;
The text was updated successfully, but these errors were encountered: