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

Ensure the str helper is url/href compliant #272

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Jul 11, 2023

So we are:

  • replacing the square brackets by parenthesis (allowed in URLs).
  • urlenconding the str contents so they are also allowed links.

Backed by tests.

Fixes #270

So we are:
- replacing the square brackets by parenthesis (allowed in URLs).
- urlenconding the str contents so they are also allowed links.

Backed by tests.

Fixes moodlehq#270
@stronk7
Copy link
Member Author

stronk7 commented Jul 13, 2023

I'm self merging this towards an imminent release to be used by others (moodle-plugin-ci, CiBoT and friends...)

@stronk7 stronk7 merged commit 12deb7b into moodlehq:master Jul 13, 2023
4 checks passed
@stronk7 stronk7 deleted the str_helper_url_compliant branch July 13, 2023 13:03
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.

Validating mustache templates that use string helpers for URLs causes warnings
1 participant