mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-22 00:07:14 +00:00
Revert "[Install] Filter Directory name"
This reverts commit e424ddbfda
.
This commit is contained in:
parent
e424ddbfda
commit
db137bbd61
@ -9,7 +9,7 @@ class Core {
|
|||||||
$counter = 0;
|
$counter = 0;
|
||||||
|
|
||||||
// Validate the hostname
|
// Validate the hostname
|
||||||
if(isset($data['hostname']) AND !empty($data['hostname']) AND filter_var($data['hostname'], FILTER_SANITIZE_URL)) {
|
if(isset($data['hostname']) AND !empty($data['hostname'])) {
|
||||||
$counter++;
|
$counter++;
|
||||||
}
|
}
|
||||||
// Validate the username
|
// Validate the username
|
||||||
@ -25,14 +25,8 @@ class Core {
|
|||||||
$counter++;
|
$counter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!preg_match("~0-9A-Za-z-/+~", $data['directory'])) {
|
|
||||||
// pass
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check if all the required fields have been entered
|
// Check if all the required fields have been entered
|
||||||
if($counter == '4') {
|
if($counter == '3') {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user