Changeset 4249 for trunk/licqweb

Show
Ignore:
Timestamp:
10/03/05 12:06:27 (3 years ago)
Author:
phatfil
Message:

whoops. do kses on users nicks properly.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licqweb/push.php

    r4248 r4249  
    101101            $user = getUserStuff($packet); 
    102102            $method = "updateStatus"; 
    103             $txt = "<newstatus><id>" . xmlentities($user['id']) . "</id><pp>" . xmlentities($user['pp']) . "</pp><nick>" . str_replace("\n", '', xmlentities($user['nick'])) . "</nick><nummsgs>" . trim(xmlentities($user['newmsgs'])) . "</nummsgs><status>" . str_replace(' ', '', xmlentities($user['status'])) . "</status></newstatus>"; 
     103            $txt = "<newstatus><id>" . xmlentities($user['id']) . "</id><pp>" . xmlentities($user['pp']) . "</pp><nick>" . str_replace("\n", '', xmlentities(kses($user['nick']))) . "</nick><nummsgs>" . trim(xmlentities($user['newmsgs'])) . "</nummsgs><status>" . str_replace(' ', '', xmlentities($user['status'])) . "</status></newstatus>"; 
    104104            break; 
    105105        case CODE_NOTIFYxMESSAGE: 
     
    118118        <response> 
    119119          <method>$method</method> 
    120           <result>" . kses($txt) . "</result> 
     120          <result>$txt</result> 
    121121        </response> 
    122122    ";