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

Fix decode_percent with fallible assertion cloudflare managed #193

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix decode_percent with fallible assertion
decode_percent!() has been resulting in errors when null is encountered. This fix will allow it to not error out when nulls are encountered.

Signed-off-by: Darius <darius@dubiza.io>
  • Loading branch information
dubiza authored Jan 6, 2025
commit adcb18900d098b6eb53d8473be8f909a5207e11a
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ transform: |
if err == null {
.url = parsed
if .url.query != null {
.url.query = decode_percent!(split!(.json.ClientRequestReferer, "?")[1])
.url.query = decode_percent(split!(.json.ClientRequestReferer, "?")[1]) ?? null
}
.url.domain = del(.url.host)
}
Expand Down
Loading