Closed (works as designed)
Project:
Bbcode
Version:
6.x-1.2
Component:
Markup
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Aug 2009 at 21:53 UTC
Updated:
16 Oct 2009 at 15:00 UTC
I've got an input format that has virtually no filters - the only things enabled are html corrector, line breaks, image resize (From image_resize module), and url filter. As soon as I enable bbcode module any javascript I've embedded in the node body is disabled and the script is written in the html.
Easy enough to just create a new input format without bbcode (I only need js for 1 or 2 nodes and only of page content type) so it's not a big deal, just took me a while to figure out which filter was causing the issue.
Comments
Comment #1
will.gresham commentedLook at line 10 of bbcode-filter.inc
$body = preg_replace(array('#<script([^>]*)>#i', '#</script([^>]*)>#i'), array('<script\\1>', '</script\\1>'), $body);This replaces < and > characters with
< and >to help prevent XSS and script injection.