tHandle missing type properly - phroxy - Gopher to HTTP proxy
HTML git clone git://git.z3bra.org/phroxy.git
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit b8839df0fea0cf644b2be9a9d9620e525ba39bd3
DIR parent 1ae65b7b2d472fd5236139bb8a6f1ed96ac55ef9
HTML Author: Willy Goiffon <dev@z3bra.org>
Date: Mon, 14 Sep 2020 16:13:57 +0200
Handle missing type properly
Diffstat:
M phroxy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/phroxy.c b/phroxy.c
t@@ -359,7 +359,7 @@ phroxy(char *url)
port = "70";
item = strsep(&url, "/");
- if (!item)
+ if (!item || !item[0] )
item = "1";
path = strsep(&url, "\0");