aboutsummaryrefslogtreecommitdiff
path: root/lib/gopher.c
diff options
context:
space:
mode:
authorNils Gillmann <ng0@n0.is>2018-09-11 10:16:59 +0000
committerNils Gillmann <ng0@n0.is>2018-09-11 10:16:59 +0000
commit8046e59880e096c1fe5e6a4b70ad57b7cd2d1354 (patch)
treec65cf5624bf702079df31be394de83da98b5b845 /lib/gopher.c
parent87430bf69f13500b1feb363ffc099cede490b6e2 (diff)
parent432eb5f5c254ee8383b2522ce597c9219877923e (diff)
downloadgnurl-8046e59880e096c1fe5e6a4b70ad57b7cd2d1354.tar.gz
gnurl-8046e59880e096c1fe5e6a4b70ad57b7cd2d1354.tar.bz2
gnurl-8046e59880e096c1fe5e6a4b70ad57b7cd2d1354.zip
Merge tag 'curl-7_61_1'
curl 7.61.1 Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'lib/gopher.c')
-rw-r--r--lib/gopher.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/gopher.c b/lib/gopher.c
index 0ee3ffe00..c9fca4207 100644
--- a/lib/gopher.c
+++ b/lib/gopher.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -89,22 +89,15 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done)
/* Create selector. Degenerate cases: / and /1 => convert to "" */
if(strlen(path) <= 2) {
sel = (char *)"";
- len = (int)strlen(sel);
+ len = strlen(sel);
}
else {
char *newp;
- size_t j, i;
/* Otherwise, drop / and the first character (i.e., item type) ... */
newp = path;
newp += 2;
- /* ... then turn ? into TAB for search servers, Veronica, etc. ... */
- j = strlen(newp);
- for(i = 0; i<j; i++)
- if(newp[i] == '?')
- newp[i] = '\x09';
-
/* ... and finally unescape */
result = Curl_urldecode(data, newp, 0, &sel, &len, FALSE);
if(result)