packagist mobiledetect/mobiledetectlib 4.8.03
Added back implicit $_SERVER scanning for setting the User-Agent string.

latest releases: 4.8.x-dev, 4.8.06, 4.8.05...
13 months ago
  • 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.

Don't miss a new mobiledetectlib release

NewReleases is sending notifications on new releases.