diff --git a/src/protocol/uri.c b/src/protocol/uri.c index 5130ec2ae..04cd519e7 100644 --- a/src/protocol/uri.c +++ b/src/protocol/uri.c @@ -175,6 +175,7 @@ encode_file_uri_string(struct string *string, unsigned char *uristring) int filenamelen = check_whether_file_exists(uristring); encode_uri_string(string, uristring, filenamelen, 0); + if (filenamelen > 0) add_to_string(string, uristring + filenamelen); }