If the title of a page contains some html eg. or ' this is being converted into plain text and is shown in the title. When I disable the Form Block module the titles are displayed correctly.

CommentFileSizeAuthor
#2 title-passthrough-1241082-1.patch620 bytessiwenro

Comments

siwenro’s picture

If the title of a page contains some html eg. or ' this is being converted into plain text and is shown in the title. When I disable the Form Block module the titles are displayed correctly.

I came across this just recently as well. A small edit to the module file appears to fix it.

On line 131 of formblock.module:

//Restore title, which will have been overridden.
drupal_set_title($title, PASS_THROUGH);

Note that using PASS_THROUGH in drupal_set_title() is discouraged, but since the module is just restoring the existing title that was retrieved a few lines up via drupal_get_title(), I don't believe there should be a problem. Disclaimer: I haven't tested this extensively and I'm a Drupal noob.

siwenro’s picture

Status: Active » Needs review
StatusFileSize
new620 bytes

Sorry. Got sidetracked. Here's the corresponding patch. Please review.

gbowman’s picture

Status: Needs review » Reviewed & tested by the community

Seems to be working for me, that was a relatively easy fix! :)

mikey_p’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.