mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-19 04:23:36 +00:00
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:
parent
9da21ad116
commit
23831686bb
@ -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