We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 916a030 commit 5b0af37Copy full SHA for 5b0af37
Helper/ConfigHelper.php
@@ -1253,7 +1253,7 @@ public function preventBackendRendering($storeId = null): bool
1253
if (!isset($_SERVER['HTTP_USER_AGENT'])) {
1254
return false;
1255
}
1256
- $userAgent = mb_strtolower((string) $_SERVER['HTTP_USER_AGENT'], 'utf-8');
+ $userAgent = mb_strtolower(stripslashes((string) filter_input(INPUT_SERVER, 'HTTP_USER_AGENT')), 'utf-8');
1257
$allowedUserAgents = $this->configInterface->getValue(
1258
self::BACKEND_RENDERING_ALLOWED_USER_AGENTS,
1259
ScopeInterface::SCOPE_STORE,
0 commit comments