Describe the bug
With ray()->showHttpClientRequests(), URLs with query params with name starting with reg are incorrectly interpreted and displayed in Ray as the HTML registered trademark entity ® when they are not the first param.
This seems to be due to Ray interpreting ® in the URL as an HTML entity
For example, the query https://fubar.com?foo=bar®No=1 is displayed as https://fubar.com?foo=bar®No=1
EDIT:
The same error happens when calling ray->link(). Try ray()->link('https://fubar.com?foo=bar®No=1'); and you get the following screenshot
Versions
Ray version 2.8.1.0
spatie/ray package version: 1.41.2
spatie/laravel-ray package version (if applicable): 1.36.2
PHP version: 8.2
Laravel version: 11.10.0
To Reproduce
Steps to reproduce the behavior:
ray()->showHttpClientRequests();
Send an HTTP request with the query string ?foo=bar®No=1.
Expected behavior
To see the query string displayed in Ray as ?foo=bar®No=1.
Screenshots
Desktop (please complete the following information):
Describe the bug With
ray()->showHttpClientRequests()
, URLs with query params with name starting withreg
are incorrectly interpreted and displayed in Ray as the HTML registered trademark entity ® when they are not the first param.This seems to be due to Ray interpreting
®
in the URL as an HTML entityFor example, the query
https://fubar.com?foo=bar®No=1
is displayed ashttps://fubar.com?foo=bar®No=1
EDIT: The same error happens when calling
ray->link()
. Tryray()->link('https://fubar.com?foo=bar®No=1');
and you get the following screenshotVersions Ray version 2.8.1.0
PHP version: 8.2 Laravel version: 11.10.0
To Reproduce Steps to reproduce the behavior:
ray()->showHttpClientRequests();
?foo=bar®No=1
.Expected behavior To see the query string displayed in Ray as
?foo=bar®No=1
.Screenshots![2024-06-19 11_47_32-Ray](https://github.com/spatie/ray/assets/334791/07287802-9f59-413d-97aa-117b024853a3)
Desktop (please complete the following information):