mirror of
https://github.com/pi-hole/web.git
synced 2026-04-22 17:59:20 +01:00
Trim CNAME target input field value data
Signed-off-by: Dennis Alexandersson <dennis@alexandersson.xyz>
This commit is contained in:
@@ -294,7 +294,7 @@ function addCustomCNAMEEntry($domain="", $target="", $json=true)
|
||||
$domain = $_REQUEST['domain'];
|
||||
|
||||
if(isset($_REQUEST['target']))
|
||||
$target = $_REQUEST['target'];
|
||||
$target = trim($_REQUEST['target']);
|
||||
|
||||
if (empty($domain))
|
||||
return returnError("Domain must be set", $json);
|
||||
|
||||
Reference in New Issue
Block a user