Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HTMLSPECIALCHARS'ing image Alt information


Daemonj

Recommended Posts

I just came across something that the OSC team should be aware of. I recently added a product that included a double-quote character in the name. When the name was passed as the alt attribute for the image tag, it threw things for a whack because that double-quote character ended the attributes definition rather than being a part of it.

 

So my suggestion is to run any alt attributes and possibly product names through HTMLSPECIALCHARS to correct this.

 

Please let me know if the above is unclear or if any additional information is desired.

 

Jim

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

That should be taken care of already with the introduction of the tep_parse_input_field_data() function in includes/functions/html_output.php.

 

Look here for related commits:

 

http://marc.theaimsgroup.com/?l=tep-commit...nput_field_data

 

Please note, the above function has yet to be implemented in the Administration Tool.

:heart:, osCommerce

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...