diff options
Diffstat (limited to '')
-rw-r--r-- | g10/keyserver.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/g10/keyserver.c b/g10/keyserver.c index 9a4e08483..12be4c2f0 100644 --- a/g10/keyserver.c +++ b/g10/keyserver.c @@ -330,7 +330,15 @@ parse_keyserver_uri(const char *string,int require_scheme, keyserver->scheme=xstrdup("hkp"); } - if(assume_hkp || (uri[0]=='/' && uri[1]=='/')) + if (uri[0]=='/' && uri[1]=='/' && uri[2] == '/') + { + /* Three slashes means network path with a default host name. + This is a hack because it does not crok all possible + combiantions. We should better repalce all code bythe parser + from http.c. */ + keyserver->path = xstrdup (uri+2); + } + else if(assume_hkp || (uri[0]=='/' && uri[1]=='/')) { /* Two slashes means network path. */ |