This commit is contained in:
gingerBill
2026-04-22 11:17:17 +01:00
parent a52d0280f7
commit 50323b43d6

View File

@@ -154,7 +154,7 @@ percent_decode :: proc(encoded_string: string, allocator := context.allocator) -
strings.write_string(&b, s[:i])
s = s[i:]
if len(s) == 0 {
if len(s) <= 1 {
return // percent without anything after it
}
s = s[1:]