Forums / Bug Reports / [not a bug] v1.3.5 html_output.php - spaces around image "title" texts

[not a bug] v1.3.5 html_output.php - spaces around image "title" texts

Locked

Views: 1,925

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
12 Oct 2006, 8:42 PM
#1
lloyd_borrett avatar

lloyd_borrett

Zen Follower

Join Date:
Mar 2006
Location:
Rosebud, Victoria, Australia
Posts:
308
Plugin Contributions:
2

[not a bug] v1.3.5 html_output.php - spaces around image "title" texts

G'day,

The following code in /includes/functions/html_output.php
if (zen_not_null($alt)) {
$image .= ' title=" ' . zen_output_string($alt) . ' "';
}

should be...
if (zen_not_null($alt)) {
$image .= ' title="' . zen_output_string($alt) . '"';
}

That is, remove the spaces surrounding the title attribute.

Best Regards, Lloyd Borrett.

Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

12 Oct 2006, 10:15 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [not a bug] v1.3.5 html_output.php - spaces around image "title" texts

I believe those extra spaces are intentional, to provide some additional padding in the title text when it's displayed.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.