-
Notifications
You must be signed in to change notification settings - Fork 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
Bug report: Links rendering incorrectly in bug bounty page #12599
Comments
I'm pretty sure this is an issue with React trying to prevent XSS attacks. This could probably be bypassed with dangerouslySetInnerHTML. |
This is related to how we parse internationalized strings... Strings for React pages are inside
const { t } = useTranslation("page-bug-bounty")
t("page-bug-bounty-some-string") Approach 2 is lighter-weight, and preferred, but it does not allow for the use of This string is inside <Text>{t("page-upgrades-bug-bounty-validity-desc")}</Text> We just need to update this to use the <Text>
<Translation id="page-bug-bounty:page-upgrades-bug-bounty-validity-desc" />
</Text> ^ By doing that, it should parse the HTML contained in this string appropriately. @darigovresearch Assigning you =) |
@wackerow it's a small fix and open for a while now, can I submit a PR for this? |
@darigovresearch You were the original poster, and marked yes to wanting to work on this so I assigned you and would like to give you the chance to patch this. It'd be nice to get this patched by the next deploy, so we still have til at least Tuesday... would you be able to do that? @bhargavkakadiya I'd ask you to hold for the moment, and @darigovresearch just let us know if you'd like to knock this out or let @bhargavkakadiya handle it. Can circle back on this in a couple days. |
@wackerow thanks for the guidance, have now put in a pull request (#12671) Have checked that the netlify preview on the page no longer renders the links - https://deploy-preview-12671--ethereumorg.netlify.app/en/bug-bounty/#rules When searching for Otherwise happy to raise an another issue and with some guidance and get this particular pull request merged for the next deployment on Tuesday. |
Describe the bug
Two links in the in scope section are not rendering correctly
To reproduce
Expected behavior
Link to the relevant locations
Screenshots
Desktop (please complete the following information)
Any device/browser
Smartphone (please complete the following information)
Any device/browser
Additional context
No response
Would you like to work on this issue?
The text was updated successfully, but these errors were encountered: