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

vmod_blob: Add convenience functions for urldecode and urlencode #4254

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nigoroll
Copy link
Member

For the common cases, the generic and versatile syntax is really cumbersome.

Why exactly did we not add these earlier?

@simonvik
Copy link
Contributor

simonvik commented Jan 15, 2025

Could it be worth writing somewhere that blob.urldecode might be unsafe and truncate values if the url contains %00? (if thats the case)

@nigoroll
Copy link
Member Author

@simonvik good point.
Are there any established alternatives to handling %00 like throwing an error?
If yes, I think we should rather review any IDENTITY encoding to STRING.

@nigoroll nigoroll changed the title vmod_blob: Add convencience functions for urldecode and urlencode vmod_blob: Add convenience functions for urldecode and urlencode Jan 16, 2025
For the common cases, the generic and versatile syntax is really cumbersome.

Why exactly did we not add these earlier?
@nigoroll
Copy link
Member Author

This triggered #4255

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