News:

Looking for documentation? Take a look on our wiki

Main Menu

xhtml compliance problem in breadcrumbs

Started by doorknob, October 10, 2008, 05:35:01 AM

Previous topic - Next topic

doorknob

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