Introduction
Introduction Statistics Contact Development Disclaimer Help
Clarify gopher+ compatibility handling. - geomyidae - a small C-based gopherd (…
git clone git://git.codemadness.org/geomyidae
Log
Files
Refs
README
LICENSE
---
commit 2a482d9af02b09bc8a770c4e08be577264d473c5
parent 7b9aa6de08d6ed822f5917c44bf61e10a804b31b
Author: Christoph Lohmann <[email protected]>
Date: Sat, 22 Jul 2023 15:57:20 +0200
Clarify gopher+ compatibility handling.
Diffstat:
M main.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/main.c b/main.c
@@ -199,7 +199,10 @@ handlerequest(int sock, char *req, int rlen, char *base, c…
* mode. DO NOT ADD ANY OTHER GOPHER+ SUPPORT. GOPHER+ IS
* CRAP.
*/
- if (*sear == '+' || *sear == '$' || *sear == '!' || *sear == '…
+ if ((sear[0] == '+' && sear[1] == '\0')
+ || (sear[0] == '$' && sear[1] == '\0')
+ || (sear[0] == '!' && sear[1] == '\0')
+ || sear[0] == '\0') {
if (loglvl & GPLUS)
logentry(clienth, clientp, recvb, "gopher+ red…
dprintf(sock, "+-2\r\n");
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.