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 c7b7126 commit 8a9ef17Copy full SHA for 8a9ef17
src/Http/IpTool.php
@@ -73,7 +73,7 @@ private static function checkDevice()
73
{
74
return isset(
75
$_SERVER['HTTP_USER_AGENT']
76
- ) ? self::getBrowserName($_SERVER['HTTP_USER_AGENT']) . '|' . self::getOS($_SERVER['HTTP_USER_AGENT']) : '';
+ ) ? self::getBrowserName(wp_kses($_SERVER['HTTP_USER_AGENT'], [])) . '|' . self::getOS(wp_kses($_SERVER['HTTP_USER_AGENT'], [])) : '';
77
}
78
79
/**
0 commit comments