mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-05-27 05:03:52 +00:00
Escape generated password in mobileconfig
Escape ampersand, less than, greater than to avoid generating invalid XML. Fixes #7171
This commit is contained in:
committed by
Michael Kuron
parent
886dbcc419
commit
ffbc37a00c
@@ -65,6 +65,7 @@ if (isset($_GET['app_password'])) {
|
||||
$attr['protocols'][] = 'dav_access';
|
||||
}
|
||||
app_passwd("add", $attr);
|
||||
$password = htmlspecialchars($password, ENT_NOQUOTES);
|
||||
} else {
|
||||
$app_password = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user