Skip to content
Snippets Groups Projects
Commit 2dd448f0 authored by rswindell's avatar rswindell
Browse files

Special finger requests can now be triggered with '.' (e.g. ".ver@yourbbs")

since some finger gateways (e.g. finger.cgi) don't like the '?'.
parent c0a2a18c
No related branches found
No related tags found
No related merge requests found
...@@ -189,7 +189,7 @@ if(findfile && 0) { // What is this supposed to do? ...@@ -189,7 +189,7 @@ if(findfile && 0) { // What is this supposed to do?
// MODIFICATION BY MERLIN PART 1 ENDS HERE // MODIFICATION BY MERLIN PART 1 ENDS HERE
if(request.charAt(0)=='?') { // Handle "special" requests if(request.charAt(0)=='?' || request.charAt(0)=='.') { // Handle "special" requests
request=request.slice(1); request=request.slice(1);
switch(request.toLowerCase()) { switch(request.toLowerCase()) {
...@@ -293,7 +293,7 @@ if(request.charAt(0)=='?') { // Handle "special" requests ...@@ -293,7 +293,7 @@ if(request.charAt(0)=='?') { // Handle "special" requests
send_file(system.data_dir + "finger/" + file_getname(request)); send_file(system.data_dir + "finger/" + file_getname(request));
break; break;
} }
writeln("Supported special requests (prepended with '?'):"); writeln("Supported special requests (prepended with '?' or '.'):");
writeln("\tver"); writeln("\tver");
writeln("\ttime"); writeln("\ttime");
writeln("\tstats"); writeln("\tstats");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment