diff options
author | cflip <cflip@cflip.net> | 2023-06-01 09:48:38 -0600 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-06-01 10:08:34 -0600 |
commit | 6370f5e0bf1e23fe87dc08aaf1a01b48bd142abc (patch) | |
tree | 6c41ccd9df49368c57982fb52324b3726109d49c /cfws.c | |
parent | 02a542644617f65cf7285f0facebc827fd036b45 (diff) |
Allow query strings to be read by PHP scripts
php-cgi is now run without any command line arguments and information
such as the script filename and the query string are passed in via
environment variables.
Diffstat (limited to 'cfws.c')
-rw-r--r-- | cfws.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ static void handle_request(const struct http_request *req, int sockfd) file_read(filepath, sockfd); break; case SERVE_METHOD_PHP: - file_read_php(filepath, sockfd); + file_read_php(filepath, req->query_str, sockfd); break; case SERVE_METHOD_ERROR: { const char *errmsg = "Content-Type: text/plain\r\n\r\nEpic fail"; |