Merge pull request #688 from wrongecho/client-website-remove-protocol-regex

Add regex to remove http:// or https:// from client_website
This commit is contained in:
Johnny
2023-05-21 22:43:26 -04:00
committed by GitHub

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']);