Skip to content

Commit

Permalink
adds regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Jul 16, 2024
1 parent 4348dc4 commit 9a5b13f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugins/Login/tests/UI/Login_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,14 @@ describe("Login", function () {

expect(await page.getWholeCurrentUrl()).to.equal("https://matomo.org/security/");
});

it("should correctly redirect for unencoded url", async function () {
testEnvironment.overrideConfig('General', 'login_allow_logme', '1');
testEnvironment.testUseMockAuth = 0;
testEnvironment.save();

await page.goto(formlessLoginUrl + "&url=//google.com\\@localhost/path");

expect(await page.getWholeCurrentUrl()).to.equal("http://localhost/path"); // username part is hidden
});
});

0 comments on commit 9a5b13f

Please sign in to comment.