If no HTTP referer is set, a TypeError is thrown

Created on 8 August 2023, over 1 year ago

TypeError: Symfony\Component\HttpFoundation\Request::create(): Argument #1 ($uri) must be of type string, null given, called in /app/web/modules/contrib/commerce_add_to_cart_link/src/Controller/AddToCartController.php on line 172 in Symfony\Component\HttpFoundation\Request::create() (line 321 of /app/vendor/symfony/http-foundation/Request.php).

Although this will mostly be triggered by bots, because by clicking on the link, we always have a referer. But anyway, this error needs to be fixed

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇦🇹Austria agoradesign

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

Comments & Activities

Production build 0.71.5 2024