Changeset 4249 for trunk/licqweb
- Timestamp:
- 10/03/05 12:06:27 (3 years ago)
- Files:
-
- 1 modified
-
trunk/licqweb/push.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licqweb/push.php
r4248 r4249 101 101 $user = getUserStuff($packet); 102 102 $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>"; 104 104 break; 105 105 case CODE_NOTIFYxMESSAGE: … … 118 118 <response> 119 119 <method>$method</method> 120 <result> " . kses($txt) . "</result>120 <result>$txt</result> 121 121 </response> 122 122 ";
