Add a patch to avoid `?' -> TAB translation. - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 045394287745bd241f79f8f245d70d521f708fc3
(DIR) parent 426aeeef70095df16677351abdfdc8edc497ec65
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Thu, 23 Aug 2018 18:07:25
Add a patch to avoid `?' -> TAB translation.
Diffstat:
www/curl/patch-lib_gopher.c | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
---
diff -r 426aeeef7009 -r 045394287745 www/curl/patch-lib_gopher.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/curl/patch-lib_gopher.c Thu Aug 23 18:07:25 2018 +0200
@@ -0,0 +1,26 @@
+$NetBSD$
+
+According RFC 4266 it seems that the `?' -> TAB transformation
+should not be done. Avoid it.
+
+--- lib/gopher.c.orig 2018-05-07 08:20:04.000000000 +0000
++++ lib/gopher.c
+@@ -93,18 +93,11 @@ static CURLcode gopher_do(struct connect
+ }
+ 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)