Welcome to Geeklog, Anonymous Friday, April 19 2024 @ 01:55 pm EDT

Geeklog Forums

TIPS for kses library' bug.


Status: offline

ivy

Forum User
Full Member
Registered: 11/25/04
Posts: 314
Location:Tokyo Japan
http://project.geeklog.net/tracking/view.php?id=861

( admin_html include p - style )
Text Formatted Code
<p style="color:red">test</p>

(by html filter)->
Text Formatted Code
<p style="red">test</p>


This is a bug caused by the kses library.

reported:
Kses should apply bad-protocol check only to URI typed attributes
http://core.trac.wordpress.org/ticket/5917


Now, hiroron reported TIPS for the bug.

add 'color' 'font-size',... to allowed_protocols of configuration.
i.e.
array ('http', 'https', 'ftp', 'color', 'font-size',... )
Then 'color:' 'font-size:' ... will not disappear.
Geeklog Japan https://www.geeklog.jp
 Quote

All times are EDT. The time is now 01:55 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content