aboutsummaryrefslogtreecommitdiff
path: root/xs_fcgi.h
diff options
context:
space:
mode:
authorshtrophic <christoph@liebender.dev>2025-02-15 14:37:36 +0100
committershtrophic <christoph@liebender.dev>2025-02-15 14:37:36 +0100
commit7611a6bee4bcbad2f1710aafa99aba730e5cf995 (patch)
tree33ab7bee30379e16f6869b2efda5494be8aeb858 /xs_fcgi.h
parent3d96c576287736ebdf87e4a7b956842a6c6e055f (diff)
parent3d705b22a67ee913b9bd4473277430bd481cef25 (diff)
Merge tag '2.72' into curl-smtp
Version 2.72 RELEASED.
Diffstat (limited to 'xs_fcgi.h')
-rw-r--r--xs_fcgi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xs_fcgi.h b/xs_fcgi.h
index 870e3e8..0b53dac 100644
--- a/xs_fcgi.h
+++ b/xs_fcgi.h
@@ -173,6 +173,9 @@ xs_dict *xs_fcgi_request(FILE *f, xs_str **payload, int *p_size, int *fcgi_id)
xs *v = xs_str_new_sz((char *)&buf[offset], vsz);
offset += vsz;
+ if (!xs_is_string(k) || !xs_is_string(v))
+ continue;
+
cgi_vars = xs_dict_append(cgi_vars, k, v);
if (strcmp(k, "REQUEST_METHOD") == 0)