diff --git a/lam/HISTORY b/lam/HISTORY index e7e0aff9..3fd01e18 100644 --- a/lam/HISTORY +++ b/lam/HISTORY @@ -1,4 +1,5 @@ June 215 + - Security: added CSRF protection - Zarafa users: allow to change display format of "Send As" diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 80ce6293..7ccd6f76 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -591,12 +591,16 @@ class htmlInputField extends htmlElement { '; } if ($this->checkPasswordStrength) { - $ajaxPath = "../templates/misc/ajax.php"; + $tokenSuffix = '?' . getSecurityTokenName() . '=' . getSecurityTokenValue(); + if (isSelfService()) { + $tokenSuffix .= '&selfservice=1'; + } + $ajaxPath = "../templates/misc/ajax.php" . $tokenSuffix; if (is_file("../../templates/misc/ajax.php")) { - $ajaxPath = "../../templates/misc/ajax.php"; + $ajaxPath = "../../templates/misc/ajax.php" . $tokenSuffix; } elseif (is_file("../../../templates/misc/ajax.php")) { - $ajaxPath = "../../../templates/misc/ajax.php"; + $ajaxPath = "../../../templates/misc/ajax.php" . $tokenSuffix; } echo '