diff options
author | Omar Polo <op@omarpolo.com> | 2021-02-01 12:28:30 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-02-01 12:28:30 +0000 |
commit | 67528c1f82bed7d6626c3be7a68d3cd98b4944f5 (patch) | |
tree | 7debf20060c8d1b128f6b9df734560c2cb956317 /ex.c | |
parent | 2fafa2d23e5607def335902b7a9d10a9de5247a9 (diff) |
don't add the query to argv
FRC3875 says that if the query does not contain any unecnoded "="
characters, we SHOULD treat the query string as a "search-string",
split in on "+" and add every word to the CGI argv.
In launch_cgi it's too late because iri->query is the *decoded* query!
I have in mind some refactoring around how we decode things, so this
is postponed.
Diffstat (limited to 'ex.c')
-rw-r--r-- | ex.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -246,7 +246,7 @@ launch_cgi(struct iri *iri, const char *spath, char *relpath, return -1; case 0: { /* child */ - char *argv[] = {NULL, NULL, NULL}; + char *argv[] = {NULL, NULL}; char *ex, *pwd; char iribuf[GEMINI_URL_LEN]; char path[PATH_MAX]; @@ -257,7 +257,6 @@ launch_cgi(struct iri *iri, const char *spath, char *relpath, ex = xasprintf("%s/%s", vhost->dir, spath); argv[0] = ex; - argv[1] = iri->query; serialize_iri(iri, iribuf, sizeof(iribuf)); |