WYSIWYG Filter Strips out allowed HTML when filter settings have not been saved

alexanderpas - September 11, 2009 - 13:29
Project:WYSIWYG Filter
Version:6.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

It seems that wysiwyg_filter somehow stips out allowed html somehow.

Configuration
- Drupal 6.13 Default Installation.
- WYSIWYG Filter default settings.
- WYSIWYG Filter as a new input filter without any other filter.

When entering:

<p>Paragraph 1</p><p>Paragraph 2</p>

it strips out all HTML.

See also attatched screenshot

AttachmentSize
wysiwyg_filter-output.png16.51 KB

#1

markus_petrux - September 11, 2009 - 15:57
Priority:critical» normal

Oh, I see. Please, visit the configure tab of the input format and save as-is. This should populate the filter settings properly.

This is not critical, no security issue involved here. I'll work on a patch later.

#2

markus_petrux - September 12, 2009 - 07:53
Title:WYSIWYG Filter Strips out allowed HTML.» WYSIWYG Filter Strips out allowed HTML when filter settings have not been saved
Status:active» fixed

Fix committed to CVS. It will be available in the next development snapshot.

In addition to this fix, I have splitted the code into several includes to minimize memory consumption while the filter is not used.

http://drupal.org/cvs?commit=261960

#3

System Message - September 26, 2009 - 08:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.