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:
Andrew Ruthven 2022-02-12 23:48:50 +13:00
parent 8096807c6d
commit 5d56f6b5ea

View File

@ -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":