Skip to content
Snippets Groups Projects
Commit 8112a144 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Strip leading slash for gopher requests

Apparently some Gopher clients prepend a slash to all requests

Fix issue #688
parent 2ac98584
No related branches found
No related tags found
No related merge requests found
......@@ -84,8 +84,10 @@ if((term=request.indexOf("\t+"))>=0) {
if(gopher_plus)
writeln("+-1"); // indicates '.' terminated data
if(request[0] == '/')
request = request.slice(1);
if(request=="" || request=='/') { /* "root" */
if(request=="") { /* "root" */
if (msg_area.grp_list.length) {
writeln(prefix + 'iMessage Groups\t\tfake\t1');
for(g in msg_area.grp_list) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment