We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfb910b commit 67ecf54Copy full SHA for 67ecf54
src/lua-urlencode.c
@@ -59,7 +59,8 @@ static uint8_t* _encode_url(const uint8_t* input) {
59
continue;
60
}
61
62
- for (int i = 0; i < charlen; i++, in_cursor++) {
+ int i;
63
+ for (i = 0; i < charlen; i++, in_cursor++) {
64
const uint8_t c = input[in_cursor];
65
encoded[out_cursor++] = '%';
66
encoded[out_cursor++] = xdigit[c >> 4];
@@ -146,7 +147,8 @@ static uint8_t* _decode_url(const uint8_t* input) {
146
147
148
149
150
151
152
153
decoded[out_cursor++] = c;
154
0 commit comments