projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0315f6b
)
Fixed POST array values paasing on timout screen.
author
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Wed, 17 Sep 2014 09:04:23 +0000
(11:04 +0200)
committer
Janusz Dobrowolski
<janusz@frontaccounting.eu>
Wed, 17 Sep 2014 09:04:23 +0000
(11:04 +0200)
access/login.php
patch
|
blob
|
history
diff --git
a/access/login.php
b/access/login.php
index 799c91c175ff7f102c3b473cc7c7a6542f77ea5b..45294376db2c38bfc262a99fac70dd554ab62cf2 100644
(file)
--- a/
access/login.php
+++ b/
access/login.php
@@
-125,7
+125,11
@@
function defaultCompany()
// add all request variables to be resend together with login data
if (!in_array($p, array('ui_mode', 'user_name_entry_field',
'password', 'SubmitUser', 'company_login_name')))
- echo "<input type='hidden' name='$p' value='$val'>";
+ if (!is_array($val))
+ echo "<input type='hidden' name='$p' value='$val'>";
+ else
+ foreach($val as $i => $v)
+ echo "<input type='hidden' name='{$p}[$i]' value='$v'>";
}
end_form(1);
$Ajax->addScript(true, "document.forms[0].password.focus();");