diff --git a/src/protocol/uri.c b/src/protocol/uri.c index 58f2df290..ef7f53e79 100644 --- a/src/protocol/uri.c +++ b/src/protocol/uri.c @@ -161,6 +161,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); }