Skip to content
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

Fix external link icons #583

Merged
merged 6 commits into from
Jul 29, 2024
Merged

Fix external link icons #583

merged 6 commits into from
Jul 29, 2024

Conversation

dropforge
Copy link
Collaborator

@dropforge dropforge commented Jul 29, 2024

The regex only matched up to the first < after the closing > of the <a> tag.

Instead, everything up to the closing exact </a> (except for newlines) is matched now (as few as possible .*?).

The permalinks are no longer broken in #525 (cannot reproduce).

Closes #516

image

@dropforge dropforge self-assigned this Jul 29, 2024
@dropforge dropforge removed the request for review from jeriox July 29, 2024 20:10
@jeriox jeriox merged commit 429f885 into fsr-de:main Jul 29, 2024
8 checks passed
dropforge added a commit to dropforge/myHPI that referenced this pull request Jul 29, 2024
Closes fsr-de#583.
Mitigates attack for links starting with // or /\ to spoof
internal links (icon is not shown despite them being external).

fix comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Icons for external links are misplaced if anchor tag contains additional markup
3 participants