Update comment and change require() to require_once().

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-08-06 20:32:49 +02:00
parent 464e55461d
commit 6ca35b0b76

View File

@@ -16,8 +16,8 @@ if (empty($api)) {
list_verify($type);
}
// Don't check if the added item is a valid domain for regex expressions. Regex
// filters are validated by FTL on import and skipped if invalid
// Only check domains we add to the exact lists.
// Regex are validated by FTL during import
$check_lists = ["white","black","audit"];
if(in_array($list, $check_lists)) {
check_domain();
@@ -27,8 +27,7 @@ if(in_array($list, $check_lists)) {
$domains = explode(",",$_POST['domain']);
require_once("func.php");
require("database.php");
require_once("database.php");
$GRAVITYDB = getGravityDBFilename();
$db = SQLite3_connect($GRAVITYDB, SQLITE3_OPEN_READWRITE);