aboutsummaryrefslogtreecommitdiffstats
path: root/url.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2020-11-11 10:29:36 +0000
committerGitHub <noreply@github.com>2020-11-11 10:29:36 +0000
commit3f165adb3d9a4caf7cc4c146cb712ec1db772e24 (patch)
treef8dac2150c376df8139399b0454d9124a2d03f87 /url.c
parentUpdate ChangeLog (diff)
parentRemove useless loop (diff)
downloadw3m-3f165adb3d9a4caf7cc4c146cb712ec1db772e24.tar.gz
w3m-3f165adb3d9a4caf7cc4c146cb712ec1db772e24.zip
Merge pull request #154 from bptato/master
Support Gopher search and binary files
Diffstat (limited to 'url.c')
-rw-r--r--url.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/url.c b/url.c
index ce0a53c..aef66ad 100644
--- a/url.c
+++ b/url.c
@@ -1853,6 +1853,8 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
case 's':
case 'g':
case 'h':
+ case '7':
+ case '9':
tmp = Strnew_charp(pu->file);
gophertmp = Strdup(tmp);
Strdelete(tmp, n, 1);
@@ -1865,6 +1867,12 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
} else {
type = '\0';
}
+ if(pu->query != NULL) {
+ tmp = Strnew_charp(pu->file);
+ Strcat_char(tmp, '\t');
+ Strcat_charp(tmp, pu->query);
+ pu->file = tmp->ptr;
+ }
if (non_null(GOPHER_proxy) &&
!Do_not_use_proxy &&
pu->host != NULL && !check_no_proxy(pu->host)) {