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 committed 2021-08-11 21:42:01 +12:00
1 parent 9da21ad116
commit 23831686bb
1 file changed
+1 -1
+1 -1
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":