Portal - allow editing client contacts, few tweaks to header incl session notifications

This commit is contained in:
wrongecho 2024-09-05 15:21:05 +01:00
parent 766813a326
commit 92681a86b3
1 changed files with 0 additions and 7 deletions

View File

@ -13,13 +13,6 @@ if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
exit();
}
//Initialize the HTML Purifier to prevent XSS
require_once "../plugins/htmlpurifier/HTMLPurifier.standalone.php";
$purifier_config = HTMLPurifier_Config::createDefault();
$purifier_config->set('URI.AllowedSchemes', ['data' => true, 'src' => true, 'http' => true, 'https' => true]);
$purifier = new HTMLPurifier($purifier_config);
// Check for a contact ID
if (!isset($_GET['id']) && !intval($_GET['id'])) {
header("Location: contacts.php");