Skip to content

Commit

Permalink
Ensure _sharePath is properly percent encoded by using QUrl::toPercen…
Browse files Browse the repository at this point in the history
…tEncoding

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jul 12, 2023
1 parent cc95a1e commit 48f1dfa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/filedetails/sharemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ void ShareModel::updateData()
qCDebug(lcShareModel) << "Updating share model data now.";

const auto relPath = _localPath.mid(_folder->cleanPath().length() + 1);
_sharePath = _folder->remotePathTrailingSlash() + relPath;
const auto sharePath = _folder->remotePathTrailingSlash() + relPath;
const auto percentEncoded = QUrl::toPercentEncoding(sharePath);
_sharePath = QString::fromUtf8(percentEncoded);

SyncJournalFileRecord fileRecord;
auto resharingAllowed = true; // lets assume the good
Expand Down

0 comments on commit 48f1dfa

Please sign in to comment.