Empty User-Agent header

Created on 31 July 2023, about 1 year ago
Updated 16 August 2023, about 1 year ago

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.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine chmez πŸ‡ΊπŸ‡¦ Lviv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024