diff -r 0bc945385d74 -r 871f17a0d27d plugins/PrivateMessages.php
--- a/plugins/PrivateMessages.php Fri Jul 30 21:31:30 2010 -0400
+++ b/plugins/PrivateMessages.php Fri Jul 30 21:32:05 2010 -0400
@@ -275,7 +275,7 @@
{
if ( ( $argv[1]=='to' || $argv[1]=='To' ) && $argv[2] )
{
- $to = htmlspecialchars($argv[2]);
+ $to = htmlspecialchars(str_replace('_', ' ', dirtify_page_id($argv[2])));
}
else
{
@@ -753,7 +753,7 @@
echo '
' . $lang->get('privmsgs_th_buddy_list', array('username' => htmlspecialchars($session->username))) . ' |
';
if($db->numrows() < 1) echo '' . $lang->get('privmsgs_msg_no_buddies') . ' |
';
$cls = 'row2';
- while ( $row = $db->fetchrow() )
+ while ( $row = $db->fetchrow($q) )
{
if($cls=='row2') $cls = 'row1';
else $cls = 'row2';
@@ -825,7 +825,7 @@
echo '
' . $lang->get('privmsgs_th_foe_list', array('username' => htmlspecialchars($session->username))) . ' |
';
if($db->numrows() < 1) echo '' . $lang->get('privmsgs_msg_no_foes') . ' |
';
$cls = 'row2';
- while ( $row = $db->fetchrow() )
+ while ( $row = $db->fetchrow($q) )
{
if($cls=='row2') $cls = 'row1';
else $cls = 'row2';