Skip to content

Commit 5b0af37

Browse files
committed
MAGE-1377 Address Codacy slash complaint
1 parent 916a030 commit 5b0af37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helper/ConfigHelper.php

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

0 commit comments

Comments
 (0)