Add regex to remove http:// or https:// from client_website #684

This commit is contained in:
Marcus Hill 2023-05-20 18:49:21 +01:00
parent 0abc6b384c
commit d0fa30d476
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<?php
$name = sanitizeInput($_POST['name']);
$type = sanitizeInput($_POST['type']);
$website = sanitizeInput($_POST['website']);
$website = preg_replace("(^https?://)", "", sanitizeInput($_POST['website']));
$referral = sanitizeInput($_POST['referral']);
$rate = floatval($_POST['rate']);
$currency_code = sanitizeInput($_POST['currency_code']);