MONEI / MONEI-PrestaShop

MONEI PrestaShop Official Module
https://monei.com
Other
2 stars 1 forks source link

Validate or sanitize text fields #45

Closed jimmyn closed 2 months ago

jimmyn commented 2 months ago

There is a problem when customers use double quotes as part of the text in an address or in some of the fields to fill out.

For instance, a customer had written "Los Olivos" with double quotes in the address field. When this data was saved to the database and later retrieved, it caused a JSON format error in the back-office order view. This generated a critical error and made it impossible to view the order details.

The issue occurred in the JSON data saved in the "_monei_history" table, specifically in the "response" field.