Welcome to Geeklog, Anonymous Saturday, November 23 2024 @ 09:04 am EST

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 EST. The time is now 09:04 am.

  • 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