Skip to content

Commit

Permalink
Fix decode_percent with fallible assertion
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dubiza authored Jan 6, 2025
1 parent 819d8c1 commit adcb189
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit adcb189

Please sign in to comment.