Skip to content

Commit

Permalink
Add assert to ensure we used _remotePath as base
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Feb 25, 2021
1 parent 8d99840 commit 8c34303
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libsync/abstractnetworkjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,15 @@ void AbstractNetworkJob::adoptRequest(QNetworkReply *reply)

QUrl AbstractNetworkJob::makeAccountUrl(const QString &relativePath) const
{
// ensure we always used the remote folder
OC_ASSERT(relativePath.startsWith(QLatin1Char('/')));
return Utility::concatUrlPath(_account->url(), relativePath);
}

QUrl AbstractNetworkJob::makeDavUrl(const QString &relativePath) const
{
// ensure we always used the remote folder
OC_ASSERT(relativePath.startsWith(QLatin1Char('/')));
return Utility::concatUrlPath(_account->davUrl(), relativePath);
}

Expand Down

0 comments on commit 8c34303

Please sign in to comment.