Skip to content

Added back implicit $_SERVER scanning for setting the User-Agent string.

Compare
Choose a tag to compare
@serbanghita serbanghita released this 15 Oct 18:38
· 9 commits to 3.74.x since this release
4.8.03
253bedd
  • added optional $config to MobileDetect constructor.
  • added autoInitOfHttpHeaders configuration which is by default true. This enabled the old behavior from 3.x and 2.x that allows automatic detection of HTTP headers and User Agent from $_SERVER.
  • refactored internal CloudFront related methods and the way setHttpHeaders work. It no longer falls back on $_SERVER. The method still calls setUserAgent in case HTTP_USER_AGENT and friends are present.
  • added maximumUserAgentLength to the $config, by default the limit is 500.