Welcome to Geeklog, Anonymous Sunday, June 16 2024 @ 07:02 pm EDT

Geeklog Forums

TIPS for kses library' bug.

Status: offline


Forum User
Full Member
Registered: 11/25/04
Posts: 314
Location:Tokyo Japan

( 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.

Kses should apply bad-protocol check only to URI typed attributes

Now, hiroron reported TIPS for the bug.

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

All times are EDT. The time is now 07:02 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