Skip to content

Commit acaeebc

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

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) filter_input(INPUT_SERVER, 'HTTP_USER_AGENT', FILTER_UNSAFE_RAW), 'utf-8');
1256+
$userAgent = mb_strtolower((string) filter_input(INPUT_SERVER, 'HTTP_USER_AGENT', FILTER_SANITIZE_SPECIAL_CHARS), 'utf-8');
12571257

12581258
$allowedUserAgents = $this->configInterface->getValue(
12591259
self::BACKEND_RENDERING_ALLOWED_USER_AGENTS,

0 commit comments

Comments
 (0)