Instance Titles improperly escaped

lyricnz - January 15, 2009 - 14:08
Project:MultiBlock
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:NancyDru
Status:closed
Description

Create an instance called "Who's Online 1", and this looks fine in the Instance page (Picture 3 attachment). However, on the block-list page, this appears as per Picture 4 attachment - with htmlencoding. Obviously, you can create a custom block on the normal block page, with the same format title, and it works fine (Picture 5 attachment).

AttachmentSize
Picture 3.JPG28.67 KB
Picture 4.JPG28.07 KB

#1

NancyDru - January 18, 2009 - 15:35

Try changing line 38 from $list[$block->delta] = array('info' => check_plain($block->title));
to $list[$block->delta] = array('info' => $block->title);

Block modules should have already escaped the titles before we get them back, and then we were escaping them again. Indeed if you look at "Who's Online" you will actually find &#039 in place if the quote.

I still need to look and see if we still need to escape the title when we create a new instance.

#2

NancyDru - January 18, 2009 - 16:22

@Andrew: We don't need check_plain as the block.module is doing that at display time.

#3

NancyDru - January 18, 2009 - 16:27
Assigned to:Anonymous» NancyDru
Status:active» fixed

Committed on both branches.

#4

andrewlevine - January 25, 2009 - 00:54

Nancy, thanks so much for keeping up with all these issues better than I can!

#5

NancyDru - January 25, 2009 - 00:57

No problem. Where should I send the invoice? :)

#6

andrewlevine - January 25, 2009 - 01:36

hummmmmmm, you can try forwarding it to Bill:
Bill Gates
1835 73rd Ave NE
Medina, WA 98039

;)

#7

System Message - February 8, 2009 - 01:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.