Index: trunk/phase3/includes/specials/SpecialBlockip.php |
— | — | @@ -501,6 +501,9 @@ |
502 | 502 | $dbw = wfGetDB( DB_MASTER ); |
503 | 503 | $delUser = Revision::DELETED_USER | Revision::DELETED_RESTRICTED; |
504 | 504 | $delAction = LogPage::DELETED_ACTION | Revision::DELETED_RESTRICTED; |
| 505 | + # Normalize user name |
| 506 | + $userTitle = Title::makeTitleSafe( NS_USER, $name ); |
| 507 | + $userDbKey = $userTitle->getDBKey(); |
505 | 508 | # To suppress, we OR the current bitfields with Revision::DELETED_USER |
506 | 509 | # to put a 1 in the username *_deleted bit. To unsuppress we AND the |
507 | 510 | # current bitfields with the inverse of Revision::DELETED_USER. The |
— | — | @@ -518,7 +521,7 @@ |
519 | 522 | $dbw->update( 'logging', array("log_deleted = log_deleted $op $delUser"), |
520 | 523 | array('log_user' => $userId), __METHOD__ ); |
521 | 524 | $dbw->update( 'logging', array("log_deleted = log_deleted $op $delAction"), |
522 | | - array('log_namespace' => NS_USER, 'log_title' => $name), __METHOD__ ); |
| 525 | + array('log_namespace' => NS_USER, 'log_title' => $userDbKey), __METHOD__ ); |
523 | 526 | # Hide name from RC |
524 | 527 | $dbw->update( 'recentchanges', array("rc_deleted = rc_deleted $op $delUser"), |
525 | 528 | array('rc_user_text' => $name), __METHOD__ ); |