Skip to content

Commit

Permalink
Encode url (#1541)
Browse files Browse the repository at this point in the history
* Encode url

* Encode url

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
  • Loading branch information
feiniks and yangheran authored Jun 17, 2024
1 parent 5c7d4da commit 8adf401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/requests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ RepoDownloadInfo RepoDownloadInfo::fromDict(QMap<QString, QVariant>& dict,
QString salt = dict.value("salt").toString();
QMap<QString, QVariant> map;
map.insert("is_readonly", read_only ? 1 : 0);
map.insert("server_url", url.toString());
map.insert("server_url", url.toEncoded().data());
map.insert("repo_salt", salt);

info.more_info = ::mapToJson(map);
Expand Down

0 comments on commit 8adf401

Please sign in to comment.