Special characters sent via URL for the page are causing an internal server error.

Created on 11 December 2024, about 2 months ago

Steps to Reproduce the Issue

1) Install the Google Programmable Search JSON API and configure it accordingly.

2) In the URL, use the following format: search/google?keys=search&page=%2527.
This will result in the following error:
TypeError: Unsupported operand types: string * string in Drupal\\google_json_api\\Plugin\\Search\\GoogleJsonApiSearch->execute() (line 164 of modules/contrib/google_json_api/src/Plugin/Search/GoogleJsonApiSearch.php).

If you remove the special character in the page parameter (in this case, %), the functionality will work as expected.

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

🇮🇳India rajkumar2030

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

Comments & Activities

Production build 0.71.5 2024