Author Topic: xhtml compliance problem in breadcrumbs  (Read 2227 times)

doorknob

  • Jr. Member
  • **
  • Posts: 151
xhtml compliance problem in breadcrumbs
« 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
Code: [Select]
$cmsPathway->addItem( $item->name, str_replace('&', '&', $item->link) );


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



Regards
Phil