Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2015-03-14 22:18:40 +0300
committersgiehl <stefan@piwik.org>2015-03-14 22:18:40 +0300
commit422167f5a8c14ed59374752ba5b8af85fb2d50f2 (patch)
treea04576350a1532c702692495818f3e7ef4224ede /plugins
parent649337c7a37a3fda9a35532240ef06092fd2f7e3 (diff)
fixes #7432 - remove action attribute from login form to force the browser to use the current url (including the hash)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Login/Controller.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Login/Controller.php b/plugins/Login/Controller.php
index 270b788380..b9660a221d 100644
--- a/plugins/Login/Controller.php
+++ b/plugins/Login/Controller.php
@@ -93,6 +93,7 @@ class Controller extends \Piwik\Plugin\Controller
function login($messageNoAccess = null, $infoMessage = false)
{
$form = new FormLogin();
+ $form->removeAttribute('action'); // remove action attribute, otherwise hash part will be lost
if ($form->validate()) {
$nonce = $form->getSubmitValue('form_nonce');
if (Nonce::verifyNonce('Login.login', $nonce)) {