r43071 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43070‎ | r43071 | r43072 >
Date:11:19, 2 November 2008
Author:dantman
Status:old
Tags:
Comment:
This short circut should return true to avoid causing a stack trace when
it bypasses regexBlock.
Modified paths:
  • /trunk/extensions/regexBlock/regexBlockCore.php (modified) (history)

Diff [purge]

Index: trunk/extensions/regexBlock/regexBlockCore.php
@@ -20,7 +20,7 @@
2121 function wfRegexBlockCheck ($current_user) {
2222 global $wgMemc, $wgSharedDB;
2323 if (!wfSimplifiedRegexCheckSharedDB())
24 - return;
 24+ return true;
2525 $ip_to_check = wfGetIP();
2626 $key = "$wgSharedDB:regexBlockCore:blockers";
2727 $cached = $wgMemc->get($key);
@@ -231,4 +231,4 @@
232232 wfRegexBlockUpdateStats ($username, $user_ip, $blocker);
233233 }
234234 }
235 -}
\ No newline at end of file
 235+}

Status & tagging log