Calling URLs with CGI and path info does not work
#36
Closed
opened 2 weeks ago by alexlehm
·
2 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
When calling a CGI url with path info, the request is never evaluated by the handleCGI method
a url like gemini://hostname/cgi-bin/script.cgi/path should run script.cgi and put /path into the PATH_INFO variable, however since the validity of the path is checked before the CGI handler is called, it notices that the path does not exist and gives an error response.
This happens in handler.go around line 137, when I comment out the whole block, the CGI runs, however then it is missing some of the directory checks and the checking if the path contains symlinks
Thanks for the report! This should be fixed now. Sorry about this, I semi-recently rearranged the order of the various components of
handleGeminiRequest()
in what I thought was a more logical order but obviously broke this.thank you