Welcome to Geeklog, Anonymous Friday, April 19 2024 @ 11:38 am EDT

Geeklog Forums

GeekLog bug with some particular symbols


Status: offline

zap

Forum User
Newbie
Registered: 01/29/05
Posts: 3
There's a bug in kses.class.php that prevents entering some symbols in any HTML-formatted content. function _no_null() removes any characters with the code 0xa9, unfortunately in UTF-8 mode this code should be fairly often encountered in non-latin characters, I've found it for the Cyrillic letter 'Э' in UTF-8 mode.

I'm not even sure it makes sense to remove this character from text even in non-UTF-8 modes since I bet there are a lot of codepages where this code represents a valid letter. For now I just commented out the line:

$string = preg_replace('/xad+/', '', $string); # deals with Opera "feature"

I'm not sure what Opera "feature" it refers to, but I'm pretty sure this fixes my problem. So if the line above is actually needed, it would be wise to use it at least for known encodings where it doesn't represent a letter, although as far as I see right now the kses class doesn't even know what encoding the text is in.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You could try installing kses 0.2.2 (Geeklog currently ships with version 0.2.1). It needs a few adjustments in lib-common.php, though.

bye, Dirk
 Quote

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