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
commit 80fa93626a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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']);