mirror of https://github.com/itflow-org/itflow
Add regex to remove http:// or https:// from client_website #684
This commit is contained in:
parent
0abc6b384c
commit
d0fa30d476
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
$name = sanitizeInput($_POST['name']);
|
$name = sanitizeInput($_POST['name']);
|
||||||
$type = sanitizeInput($_POST['type']);
|
$type = sanitizeInput($_POST['type']);
|
||||||
$website = sanitizeInput($_POST['website']);
|
$website = preg_replace("(^https?://)", "", sanitizeInput($_POST['website']));
|
||||||
$referral = sanitizeInput($_POST['referral']);
|
$referral = sanitizeInput($_POST['referral']);
|
||||||
$rate = floatval($_POST['rate']);
|
$rate = floatval($_POST['rate']);
|
||||||
$currency_code = sanitizeInput($_POST['currency_code']);
|
$currency_code = sanitizeInput($_POST['currency_code']);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue