Skip to content

Commit b13668c

Browse files
erikjvTheOneRing
authored andcommitted
Strip user info from URL in New Connection Wizard
Authentication is done through the web browser, so no user information is needed for that URL. Fixes: #11497
1 parent be4c4b7 commit b13668c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

changelog/unreleased/11497

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Bugfix: strip user information from new-connection URL
2+
3+
Credentials in the URL are not supported for some time. This fix strips
4+
them from the URL before storage and using it to authenticate the client
5+
to the server.
6+
7+
https://github.com/owncloud/client/issues/11497
8+
https://github.com/owncloud/client/pull/11509

src/gui/newwizard/states/serverurlsetupwizardstate.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void ServerUrlSetupWizardState::evaluatePage()
7272
userProvidedUrl.prepend(defaultUrlSchemeC);
7373
}
7474

75-
return QUrl::fromUserInput(userProvidedUrl);
75+
return QUrl::fromUserInput(userProvidedUrl).adjusted(QUrl::RemoveUserInfo);
7676
}();
7777

7878
// (ab)use the account builder as temporary storage for the URL we are about to probe (after sanitation)

0 commit comments

Comments
 (0)