Introduction
Introduction Statistics Contact Development Disclaimer Help
youtube/gopher: fix search regression - frontends - front-ends for some sites (…
Log
Files
Refs
README
LICENSE
---
commit bf8c35a7535d6791e618edc08a055822cba4e304
parent 6a0c8467e341a2770a9887494851305e1fb3de17
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 26 Feb 2023 16:26:24 +0100
youtube/gopher: fix search regression
Diffstat:
M youtube/gopher.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/youtube/gopher.c b/youtube/gopher.c
@@ -262,10 +262,6 @@ main(void)
requestpath = p;
if ((p = getenv("QUERY_STRING")))
querystring = p;
- if (!p)
- p = getenv("X_GOPHER_SEARCH"); /* geomyidae */
- if (!p)
- p = getenv("SEARCHREQUEST"); /* gophernicus */
p = NULL;
if (querystring[0] == '?')
@@ -283,6 +279,10 @@ main(void)
if (querystring[0])
p = querystring;
+ if (!p)
+ p = getenv("X_GOPHER_SEARCH"); /* geomyidae */
+ if (!p)
+ p = getenv("SEARCHREQUEST"); /* gophernicus */
if (p)
rawsearch = p;
if (p && !uriencode(p, search, sizeof(search))) {
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.