summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file.c b/file.c
index 7d7abb2..b51a5f8 100644
--- a/file.c
+++ b/file.c
@@ -112,6 +112,8 @@ int file_read_php(const char *filepath, const char *query_str, int sockfd)
while ((bytes_read = fread(buffer, 1, FILE_READBUF_SIZE, fp)) > 0)
write(sockfd, buffer, bytes_read);
+ unsetenv("QUERY_STRING");
+
pclose(fp);
return 0;
}