Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

vmod_blob: Add convenience functions for urldecode and urlencode#4254

Open
nigoroll wants to merge 1 commit intovarnishcache:masterfrom
nigoroll:url
Open

vmod_blob: Add convenience functions for urldecode and urlencode#4254
nigoroll wants to merge 1 commit intovarnishcache:masterfrom
nigoroll:url

Conversation

@nigoroll
Copy link
Copy Markdown
Member

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

Why exactly did we not add these earlier?

@simonvik
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

This triggered #4255

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants