Don't escape HTML characters in the password.

We allow them when users set their passwords, and no doubt allowed
from LDAP and other external sources. We should allow them to be
entered. Closes #229.
This commit is contained in:
Andrew Ruthven 2021-08-11 21:40:03 +12:00
parent 9da21ad116
commit 23831686bb

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