From db137bbd61fd13945cfccb4bbe8c71f772b5abb6 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 20 Jul 2021 19:22:39 +0100 Subject: [PATCH] Revert "[Install] Filter Directory name" This reverts commit e424ddbfda30cf8119f8555509f44f9d554d974f. --- install/includes/core_class.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/install/includes/core_class.php b/install/includes/core_class.php index c4015f23..441962bc 100644 --- a/install/includes/core_class.php +++ b/install/includes/core_class.php @@ -9,7 +9,7 @@ class Core { $counter = 0; // 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++; } // Validate the username @@ -25,14 +25,8 @@ class Core { $counter++; } - if(!preg_match("~0-9A-Za-z-/+~", $data['directory'])) { - // pass - } else { - return false; - } - // Check if all the required fields have been entered - if($counter == '4') { + if($counter == '3') { return true; } else {