VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: doorknob on October 10, 2008, 05:35:01 AM

Title: xhtml compliance problem in breadcrumbs
Post by: doorknob on October 10, 2008, 05:35:01 AM
I tracked down a problem with ampersands in the breadcrumbs to classes/mainframe.class.php

Line 363 needs to be changed from
$cmsPathway->addItem( $item->name, str_replace('&', '&', $item->link) );



to
$cmsPathway->addItem( $item->name, htmlspecialchars( $item->link, ENT_QUOTES, 'UTF-8', false ) ); // ensure ampersands encoded




Regards
Phil