r111219 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111218‎ | r111219 | r111220 >
Date:23:45, 10 February 2012
Author:werdna
Status:ok
Tags:
Comment:
Armour page titles in MD5 when putting information about AbuseFilter warnings in the session. Resolves bug 26635.
Modified paths:
  • /trunk/extensions/AbuseFilter/AbuseFilter.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php
@@ -622,7 +622,7 @@
623623
624624 if ( !empty( $actions['warn'] ) ) {
625625 $parameters = $actions['warn']['parameters'];
626 - $warnKey = 'abusefilter-warned-' . $title->getPrefixedText() . '-' . $filter;
 626+ $warnKey = 'abusefilter-warned-' . md5($title->getPrefixedText()) . '-' . $filter;
627627 if ( !isset( $_SESSION[$warnKey] ) || !$_SESSION[$warnKey] ) {
628628 $_SESSION[$warnKey] = true;
629629

Status & tagging log