Skip to content

[3.0.x.x] Trim posted data#15082

Merged
mhcwebdesign merged 1 commit intoopencart:3.0.x.xfrom
mhcwebdesign:3.0.x.x
Aug 2, 2025
Merged

[3.0.x.x] Trim posted data#15082
mhcwebdesign merged 1 commit intoopencart:3.0.x.xfrom
mhcwebdesign:3.0.x.x

Conversation

@mhcwebdesign
Copy link
Copy Markdown
Contributor

To trim posted data once for POST requests, with subsequent validations not having to use individual trim calls. Also, currency symbols can now optionally have a blank space.

To trim posted data once for POST requests, with subsequent validations not having to use individual trim calls.
Also, currency symbols can now optionally have a blank space.
@mhcwebdesign mhcwebdesign merged commit fc38b8e into opencart:3.0.x.x Aug 2, 2025
4 checks passed
@osworx
Copy link
Copy Markdown
Contributor

osworx commented Aug 2, 2025

Perfect.
Do you think that this maybe will also be integrated into the 4.x branch?
Eventually a PR - you will make it?

@stalker780
Copy link
Copy Markdown
Contributor

Do you think that this maybe will also be integrated into the 4.x branch?

This is already done in OC4 for at a least 2 years ;)

$data = trim(htmlspecialchars($data, ENT_COMPAT, 'UTF-8'));

@osworx
Copy link
Copy Markdown
Contributor

osworx commented Aug 3, 2025

@stalker780 trim(..) yes, but not that for the currency symbol - or?

@mhcwebdesign
Copy link
Copy Markdown
Contributor Author

You can now set the usage of currency symbol space in the admin backend at
System > Settings > tab Local > Right Currency Symbol Space : Yes or No
System > Settings > tab Local > Left Currency Symbol Space : Yes or No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants