Skip to content

Conversation

@StopMotionCuber
Copy link

This is adding 2 functions to templating to improve ability to work with URLs in templates.

These functions are

  • safeUrl (the same as safeHtml, but for URLs)
  • urlUnescape (transforming stuff like %20 to blanks)

For relevant context on why I need that, see #4616. I'm also fine with dropping either of the functions for my issue. safeUrl might have some security implications, while urlUnescape can already be implemented quite inefficiently with a long chain of reReplaceAll and therefore should have less security implications

Signed-off-by: Ruben Simons <r.simons@fz-juelich.de>
Signed-off-by: Ruben Simons <r.simons@fz-juelich.de>
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.

1 participant