Strip Out http and https in domains, vendors and passwords

This commit is contained in:
johnnyq
2023-05-22 10:39:50 -04:00
parent 96d39a328f
commit 9449a87a1f
3 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ $contact_name = sanitizeInput($_POST['contact_name']);
$phone = preg_replace("/[^0-9]/", '', $_POST['phone']);
$extension = preg_replace("/[^0-9]/", '', $_POST['extension']);
$email = sanitizeInput($_POST['email']);
$website = sanitizeInput($_POST['website']);
$website = preg_replace("(^https?://)", "", sanitizeInput($_POST['website']));
$hours = sanitizeInput($_POST['hours']);
$sla = sanitizeInput($_POST['sla']);
$code = sanitizeInput($_POST['code']);