Changeset 4248 for trunk/licqweb

Show
Ignore:
Timestamp:
10/03/05 11:47:34 (3 years ago)
Author:
phatfil
Message:

fix kses input filtering on contacts nicks

Location:
trunk/licqweb
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/licqweb/push.php

    r4186 r4248  
    118118        <response> 
    119119          <method>$method</method> 
    120           <result>$txt</result> 
     120          <result>" . kses($txt) . "</result> 
    121121        </response> 
    122122    "; 
  • trunk/licqweb/rms.php

    r4247 r4248  
    123123    // kses input filtering 
    124124    $allowed = array('b' => array(), 
    125                     'i' => array(), 
    126                     'a' => array('href' => 1, 'title' => 1), 
    127                     'p' => array('align' => 1), 
    128                     'br' => array(), 
     125                    'i' => array(), 
     126                    'a' => array('href' => 1, 'title' => 1), 
     127                    'p' => array('align' => 1), 
     128                    'br' => array(), 
    129129                     'font' => array('size' => 1, 'color' => 1, 'face' => 1) 
    130                      ); 
     130                    ); 
    131131     
    132132    if (get_magic_quotes_gpc()) { 
     
    250250    } 
    251251    $nick = strrev($nick); 
    252     $nick = trim($nick); 
     252    $nick = kses(trim($nick)); 
    253253 
    254254    // Now we have a user, lets build a list struct then display the list