Admin controls broken due to script tag in #description. Drupal 5.1

ragaskar - September 22, 2007 - 22:15
Project:Embed filter
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

The '#description' on line 76 contains , and tags that do not appear to be 'check_plain'-ed, causing the form to render incompletely. wrapping the t() in a check_plain fixes this issue, obviously.

There's a good chance this may be the result of some unusual settings on our particular install, as otherwise I'd imagine many more people would be complaining. When I get an opportunity to test on our other server I'll report back if I experience similar problems.

#1

ragaskar - September 22, 2007 - 22:17

well, that should read "contains <object>, <embed> and <script>" tags. heh.

#2

Steven Jones - September 24, 2007 - 21:29
Status:active» fixed

Other tags in descriptions appear to be written as &lt;tag>, so copied that style to the description in question.

#3

tangent - September 26, 2007 - 16:53

Escaping the characters <, >, and & is necessary in any xml (including xhtml). Most browsers tend to "do what I mean" in the case of xhtml but it's best practice to escape them anyway.

#4

Anonymous - October 10, 2007 - 18:41
Status:fixed» closed

#5

jcbrew - December 30, 2008 - 00:05

This is still not fixed... I just installed the module and I am getting the same problem. If I am supposed to "fix" it could you please let me know how this is done?

I am using IE 7, FireFox 3, Safari 3.2.1 on Windows XP...

Thanks

#6

jcbrew - December 30, 2008 - 00:03
Status:closed» active

#7

yhager - October 1, 2009 - 15:38
Status:active» needs review

very simple fix, patch attached.

AttachmentSize
yh.patch 0 bytes

#8

yhager - October 1, 2009 - 15:39

Please ignore previous attachment. This is the right one.

AttachmentSize
yh.patch 1.16 KB
 
 

Drupal is a registered trademark of Dries Buytaert.