Configuration value not saving special characters
When i tried to save
Name 1 <email@address1>
It saved as
Name 1 <email@address1>
Re: Configuration value not saving special characters
which field did this occur in, and which configuration group?
Re: Configuration value not saving special characters
@swguy, any of the Email Options email addresses, Layout Settings separators and indents ... the list goes on.
FWIW, on a couple of upgrade sites, I've added an overriding sanitizer in /admin/extra_datafiles similar to:
Code:
$my_sanitizer = AdminRequestSanitizer::getInstance();
$my_sanitizer->addSimpleSanitization('PRODUCT_DESC_REGEX', array('configuration_value'));
to work around that issue.
Re: Configuration value not saving special characters
This DOES ring a bell now - is it fixed in 1.5.7?
Re: Configuration value not saving special characters
Quote:
Originally Posted by
swguy
This DOES ring a bell now - is it fixed in 1.5.7?
Nope, it's still present in zc157.
Re: Configuration value not saving special characters
Huh? Still an issue in 1.5.7? What about: https://github.com/zencart/zencart/pull/2267
Which was specifically built to address this issue and was incorporated almost a month ago. (was originally setup to incorporate to ZC 1.5.6.) the update sql for ZC 1.5.7 includes commands that would need to be executed to address/prevent the over sanitization of email addresses.
Re: Configuration value not saving special characters
Quote:
Originally Posted by
mc12345678
Huh? Still an issue in 1.5.7? What about
:
https://github.com/zencart/zencart/pull/2267
Which was specifically built to address this issue and was incorporated almost a month ago. (was originally setup to incorporate to ZC 1.5.6.) the update sql for ZC 1.5.7 includes commands that would need to be executed to address/prevent the over sanitization of email addresses.
I'll need to re-run that update SQL, but note that the issue is not limited to email addresses; it's wherever an 'html special character' is required (like in the layout settings).
Try, for example, saving Layout Settings->Bread Crumbs Navigation Separator (default value :: ); it gets saved as &nbsp;::&nbsp;
Re: Configuration value not saving special characters
Quote:
Originally Posted by
lat9
I'll need to re-run that update SQL, but note that the issue is not limited to email addresses; it's wherever an 'html special character' is required (like in the layout settings).
Try, for example, saving Layout Settings->Bread Crumbs Navigation Separator (default value :: ); it gets saved as &nbsp;::&nbsp;
Yup, and if there was some guidance on what would be considered "acceptable" in such a field, then more could be done at each of the entries. Email was an easy one to target and correct. Otherwise everything is "cleansed" to the maximum extent.