Changeset 4245 for trunk/licqweb

Show
Ignore:
Timestamp:
10/01/05 16:14:50 (3 years ago)
Author:
phatfil
Message:

modified kses.php slightly so that html tags that aren't allowed are now shown as plain text (instead of removing the whole tag + text)

Location:
trunk/licqweb
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/licqweb/CHANGELOG

    r4244 r4245  
    55- sent messages with return characters get displayed properly 
    66- added aim icons 
     7- html tags that aren't allowed are now shown as plain text (instead of removing the whole tag + text) 
  • trunk/licqweb/kses.php

    r4186 r4245  
    106106  $attrlist = $matches[3]; 
    107107 
    108   if (!@isset($allowed_html[strtolower($elem)])) 
    109     return ''; 
     108  if (!@isset($allowed_html[strtolower($elem)])) { 
     109    $string = str_replace(array('<', '>'), array('&lt;', '&gt;'), $string); 
     110    return $string; 
    110111    # They are using a not allowed HTML element 
     112  } 
    111113 
    112114  if ($slash != '') 
  • trunk/licqweb/TODO

    r4244 r4245  
    22* fix plaintext passwords 
    33* fix invisible status images 
    4 * html tags in user nicks + messages (should show unallowed html as plain text) 
    54* messages from offline users 
    65* focus issues