Skip to content

Commit 2cc30a8

Browse files
committed
MAGE-1377 Address Codacy complaints
1 parent 5fc9537 commit 2cc30a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Helper/ConfigHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,8 @@ public function preventBackendRendering($storeId = null): bool
12531253
if (!isset($_SERVER['HTTP_USER_AGENT'])) {
12541254
return false;
12551255
}
1256-
$userAgent = mb_strtolower(stripslashes((string) filter_input(INPUT_SERVER, 'HTTP_USER_AGENT')), 'utf-8');
1256+
$userAgent = mb_strtolower((string) filter_input(INPUT_SERVER, 'HTTP_USER_AGENT', FILTER_UNSAFE_RAW), 'utf-8');
1257+
12571258
$allowedUserAgents = $this->configInterface->getValue(
12581259
self::BACKEND_RENDERING_ALLOWED_USER_AGENTS,
12591260
ScopeInterface::SCOPE_STORE,

Model/Backend/QueueCron.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class QueueCron extends Value
1010
const CRON_FORMAT_REGEX = '/^(\*|[0-9,\-\/\*]+)\s+(\*|[0-9,\-\/\*]+)\s+(\*|[0-9,\-\/\*]+)\s+(\*|[0-9,\-\/\*]+)\s+(\*|[0-9,\-\/\*]+)$/';
1111
const CRON_DISALLOW_REGEX = '/[^@a-z0-9\*\-,\/ ]/';
1212

13-
1413
protected array $mappings = [
1514
'@yearly' => '0 0 1 1 *',
1615
'@annually' => '0 0 1 1 *',

0 commit comments

Comments
 (0)