mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-20 16:56:02 +00:00
Allow "&'<> in passwords.
We had already allowed these when changing a password, but they were being escaped when logging in. Closes #259.
This commit is contained in:
parent
8096807c6d
commit
5d56f6b5ea
@ -10,7 +10,7 @@ if ( preg_match('{/always.php$}', $_SERVER['SCRIPT_NAME'] ) ) header('Location:
|
||||
|
||||
// XSS Protection
|
||||
function filter_post(&$val, $index) {
|
||||
if(in_array($index, ["newpass1", "newpass2"])) return;
|
||||
if(in_array($index, ["newpass1", "newpass2", "password"])) return;
|
||||
|
||||
switch (gettype($val)) {
|
||||
case "string":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user