Introduction
Introduction Statistics Contact Development Disclaimer Help
youtube/gopher: use PATH_TRANSLATED, fallback to PATH_INFO - frontends - front-…
Log
Files
Refs
README
LICENSE
---
commit dfe9d705355efc8d67dfb40f015f503bc5a089bf
parent b608dae128234bedd5ed09fe89c22c0dd5ef0b28
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 13 Jun 2025 17:17:01 +0200
youtube/gopher: use PATH_TRANSLATED, fallback to PATH_INFO
This change is needed for the latest geomyidae which more strictly conforms to
the CGI RFC.
Diffstat:
M youtube/gopher.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/youtube/gopher.c b/youtube/gopher.c
@@ -282,7 +282,9 @@ main(void)
host = p;
if ((p = getenv("SERVER_PORT")))
port = p;
- if ((p = getenv("PATH_INFO")))
+ if ((p = getenv("PATH_TRANSLATED")))
+ requestpath = p;
+ else if ((p = getenv("PATH_INFO"))) /* fallback to PATH_INFO */
requestpath = p;
if ((p = getenv("QUERY_STRING")))
querystring = p;
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.