Fix a security vulnerability for provisioning

This commit is contained in:
Mark Crane
2014-06-09 17:47:37 +00:00
parent 1b1a97e5b9
commit ad0a5b9a72

View File

@@ -139,6 +139,10 @@ include "root.php";
$mac = $this->mac;
$file = $this->file;
//remove ../ and slashes in the file name
$search = array('..', '/', '\\');
$file = str_replace($search, "", $file);
//get the domain_name
if (strlen($domain_name) == 0) {
$sql = "SELECT domain_name FROM v_domains ";