Gallery displays HTML entities in breadcrumbs. For example, an album named "A & B" is displayed in the breadcrumb path as "A & B".

It's clear that something along the path from drupal_set_breadcrumb() and before the browser is expanding the "&" further, to "&", and the browser is correctly displaying it as "&".

The attached patch calls html_entity_decode() on each breadcrumb element before passing it to drupal_set_breadcrumb() and that seems to correct the problem I'm experiencing, but I haven't studied the code enough to know if the HTML entity even belongs at that level. (It would seem to me that HTML entities should only appear at the time of final rendering, else drupal_set_breadcrumb() should accept HTML entities.)

CommentFileSizeAuthor
gallery.module.patch1.12 KBDaniel Norton
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Simon Georges’s picture

Status: Active » Needs review

Changing status, as there is a patch.

apaderno’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Issue summary: View changes
Status: Needs review » Closed (outdated)
Issue tags: -breadcrumbs, -Entity system, -patch, -html

I am closing this issue, which is for a not-supported Drupal version.