-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
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
Use IHtmlGenerator / TagBuilder in all necessary tag helpers #5322
Comments
I think this is the behavior of Razor Pages. |
I don't think so. input: @{
var test = "\"><img src=0 onerror=alert(0)>";
}
<abp-tabs>
<abp-tab-link title="Link" href="@test"/>
</abp-tabs> expected result: <a class="nav-link active" id="...-tab" href=""><img src=0 onerror=alert(0)>">Link</a> actual result: <a class="nav-link active" id="...-tab" href=""><img src="0" onerror="alert(0)">">Link</a> Therefore I have to encode the value @{
var test = "\"><img src=0 onerror=alert(0)>";
}
<a asp-host="@test">Click Me</a> actual result: <a href="http://"><img src=0 onerror=alert(0)>">Click Me</a> |
Also, I would like to an fix an issue in jquery-extensions.js. |
hi @SecTex I just check the AspNet Core tag helper source code, not depth study. |
Hi,
Is there a reason that some attribute values are not encoded when using abp's tag-helper?
If not, I would like to contribute a PR.
Background:
We want to give the user the opportunity to edit the localized texts. Accordingly, the values should be encoded.
Example:
✔️ Properly encoded
❌ Not encoded
The text was updated successfully, but these errors were encountered: