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

parser/pageparser: Don't allow parameters after closing tag in shortcodes #13299

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

guilhas07
Copy link
Contributor

Problem:

Previously, the following self-closing shortcode syntax was incorrectly allowed:
{{% sc / param %}}

Solution:

Only allow parameters before the self-closing tag


After some iterations, I believe I found the "intended" solution to this problem (I hope 😅).
Let me know if more tests/changes are needed. Thank you for your work on this project!

…odes

Problem:
Previously, the following self-closing shortcode syntax was incorrectly allowed:
{{% sc / param %}}

Solution:
Only allow parameters before the self-closing tag
@bep bep merged commit c939c33 into gohugoio:master Jan 24, 2025
6 checks passed
@guilhas07 guilhas07 deleted the fix-shortcode branch January 24, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants