diff --git a/app/contacts/contact_edit.php b/app/contacts/contact_edit.php index 9df41dc465..79f76c4221 100644 --- a/app/contacts/contact_edit.php +++ b/app/contacts/contact_edit.php @@ -178,7 +178,7 @@ else { unset($sql); messages::add($text['message-update']); - $location = "contact_edit.php?id=".$contact_uuid; + $location = "contact_edit.php?id=".escape($contact_uuid); } //if ($action == "update") //assign the contact to the user that added the contact @@ -235,7 +235,7 @@ else { //handle redirect if ($_POST['submit'] == $text['button-add']) { - $location = "contact_edit.php?id=".$contact_uuid; + $location = "contact_edit.php?id=".escape($contact_uuid); } //redirect the browser @@ -401,13 +401,13 @@ else { $btn_mod = "style='background-color: #3693df; background-image: none;'"; } unset ($sql, $prep_statement, $result); - echo " \n"; + echo " \n"; } echo " \n"; - echo " \n"; + echo " \n"; } if ($action == "update" && is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/invoices')) { - echo " \n"; + echo " \n"; } if ($action == "update" && is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/certificates')) { echo " \n"; @@ -441,7 +441,7 @@ else { echo " \n"; } @@ -719,7 +719,7 @@ else { foreach($result as $field) { if ($field['group_name'] == "superadmin" && !if_group("superadmin")) { continue; } //only show superadmin group to superadmins if ($field['group_name'] == "admin" && (!if_group("superadmin") && !if_group("admin"))) { continue; } //only show admin group to admins - echo "\n"; + echo "\n"; } echo " ";