Don't show the user any potenitally questionable remote data
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 28 Oct 2022 14:43:30 +0000 (16:43 +0200)
committerClaudio Cambra <claudio.cambra@gmail.com>
Sat, 29 Oct 2022 11:32:48 +0000 (13:32 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/editlocallyhandler.cpp

index 65f12911c4f9c19db9c2624ba6c895dc56ed9ca2..80d38b07c3245c2e9af2bea82bd582cbfdc82d3a 100644 (file)
@@ -70,7 +70,7 @@ void EditLocallyHandler::startSetup()
 
     if (!_accountState) {
         qCWarning(lcEditLocallyHandler) << "Could not find an account " << _userId << " to edit file " << _relPath << " locally.";
-        showError(tr("Could not find an account for local editing."), _userId);
+        showError(tr("Could not find an account for local editing."), tr("Please try again."));
         return;
     }
 
@@ -110,7 +110,7 @@ void EditLocallyHandler::remoteTokenCheckResultReceived(const int statusCode)
     _tokenVerified = statusCode == HTTP_OK_CODE;
 
     if (!_tokenVerified) {
-        showError(tr("Could not validate the request to open a file from server."), _relPath);
+        showError(tr("Could not validate the request to open a file from server."), tr("Please try again."));
     }
 
     proceedWithSetup();