Accept style property names in uppercase

davexoxide - February 3, 2009 - 19:50
Project:WYSIWYG Filter
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:davexoxide
Status:closed
Description

Was having troubles with YUI RTE in IE6 and IE7. Where background-color and color would not display properly. Appears that WYSIWYG editor does not agree COLOR = color or BACKGROUND-COLOR = background-color.

Added this very simple change and now everything works as expected.

AttachmentSize
wysiwyg_IE_lower.diff343 bytes

#1

markus_petrux - February 18, 2009 - 16:19
Status:needs review» fixed

hmm... your patch would also affect style property values, which could lead to unexpected results, for example when URLs for background images are involved, etc.

I'm commiting to CVS the following instead:

<?php
            
// Ignore properties that do not match the format "property-name: value".
            
continue;
           }
-         
$property_name = &$property_matches[1];
+         
$property_name = strtolower($property_matches[1]);
          
$property_value = &$property_matches[2];
           if (!isset(
$allowed_properties[$property_name])) {
            
// Ignore property if not whitelisted in filter settings.
?>

Please, let me know if this works for you as well. Thanks.

#2

markus_petrux - February 18, 2009 - 16:28
Status:fixed» closed

#3

markus_petrux - August 19, 2009 - 19:03
Title:IE bug» Accept style property names in uppercase

Better name.

 
 

Drupal is a registered trademark of Dries Buytaert.