|
|
@ -32,7 +32,7 @@ if (!isset($config)) $config = []; |
|
|
|
|
|
|
|
$action = (isset($_REQUEST['action']) and preg_match(ACTION_REGEX, $_REQUEST['action'])) ? $_REQUEST['action'] : null; |
|
|
|
|
|
|
|
$supplier = array_key_exist('supplier', $_REQUEST) ? $_REQUEST['supplier'] : $requestSupplier; |
|
|
|
$supplier = array_key_exists('supplier', $_REQUEST) ? $_REQUEST['supplier'] : $requestSupplier; |
|
|
|
$hasSupplier = is_string($supplier) and preg_match(SUPPLIER_REGEX, $supplier); |
|
|
|
|
|
|
|
if ($hasSupplier) { |
|
|
@ -116,7 +116,7 @@ if ($action === 'config') { |
|
|
|
} |
|
|
|
|
|
|
|
try { |
|
|
|
$event = array_key_exist('event', $_REQUEST) ? $_REQUEST['event'] : $requestEvent; |
|
|
|
$event = array_key_exists('event', $_REQUEST) ? $_REQUEST['event'] : $requestEvent; |
|
|
|
$hasEvent = ( |
|
|
|
is_string($event) |
|
|
|
and preg_match(EVENT_REGEX, $event) |
|
|
|