No Code Attached Yet
avatar ron4mac
ron4mac
11 Jul 2023

Steps to reproduce the issue

Access the Joomla instance when there is no user agent in the request

Expected result

No PHP error, warning or notice

Actual result

PHP Deprecated: stripos(): Passing null to parameter #1 ($haystack) of type string is deprecated in libraries/vendor/joomla/application/src/Web/WebClient.php on line 286

System information (as much as possible)

Joomla version 4.3.2
PHP Version 8.1.21

Additional comments

Causes an issue in my development of an appliance that accesses Joomla in raw format via curl seeking image data. The notice corrupts the image data. I would rather not do development work without error reporting.

avatar ron4mac ron4mac - open - 11 Jul 2023
avatar joomla-cms-bot joomla-cms-bot - change - 11 Jul 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 11 Jul 2023
avatar Quy
Quy - comment - 11 Jul 2023

Closing as duplicate of #39960. Thanks for reporting.

avatar Quy Quy - change - 21 Aug 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-08-21 22:47:01
Closed_By Quy
avatar Quy Quy - close - 21 Aug 2023

Add a Comment

Login with GitHub to post a comment