tAccept selectors not beginning with / (eg. "URL:") - phroxy - Gopher to HTTP proxy
HTML git clone git://git.z3bra.org/phroxy.git
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 4c0ea205738fb85c00e1dba8a8cfbe87ea614119
DIR parent c98cfd1ee68525144b1041c72d41b14febb33677
HTML Author: Willy Goiffon <dev@z3bra.org>
Date: Tue, 15 Sep 2020 15:09:33 +0200
Accept selectors not beginning with / (eg. "URL:")
Diffstat:
M phroxy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/phroxy.c b/phroxy.c
t@@ -371,7 +371,7 @@ phroxy(char *url)
item = '1';
path = strsep(&url, "\0");
- if (!path || *path != '/')
+ if (!path || *path == '\0')
path = "/";
if((srch = strchr(path, '?')))