Problem/Motivation

When you send a request from an external API to a Drupal website without this header then you see the following error:

Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Mobile_Detect->match() (line 1460 of /var/www/vendor/mobiledetect/mobiledetectlib/Mobile_Detect.php)

Proposed resolution

It was solved here so we need to update a required library to the next version.

Comments

chmez created an issue. See original summary.

ohorbatiuk’s picture

Version: 3.0.4 » 3.0.x-dev
Assigned: ohorbatiuk » Unassigned
Status: Active » Needs review
StatusFileSize
new304 bytes
nonom’s picture

Assigned: Unassigned » nonom

  • nonom committed 811a0c6f on 3.0.x authored by lexhouk
    Issue #3378235 by lexhouk: Empty User-Agent header
    
nonom’s picture

Thanks for contrib. Committed in dev branch for testing.

nonom’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.