mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-07-25 09:04:32 +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';
|
$attr['protocols'][] = 'dav_access';
|
||||||
}
|
}
|
||||||
app_passwd("add", $attr);
|
app_passwd("add", $attr);
|
||||||
|
$password = htmlspecialchars($password, ENT_NOQUOTES);
|
||||||
} else {
|
} else {
|
||||||
$app_password = false;
|
$app_password = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user