r9394 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r9393‎ | r9394 | r9395 >
Date:11:44, 11 June 2005
Author:vibber
Status:old
Tags:
Comment:
* (bug 2384) Fix typo in regex for IP address checking
Missed this one
Modified paths:
  • /branches/REL1_4/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: branches/REL1_4/phase3/includes/Article.php
@@ -188,7 +188,7 @@
189189 $this->loadContent( $noredir );
190190 # check if we're displaying a [[User talk:x.x.x.x]] anonymous talk page
191191 if ( $this->mTitle->getNamespace() == NS_USER_TALK &&
192 - preg_match('/^\d{1,3}\.\d{1,3}.\d{1,3}\.\d{1,3}$/',$this->mTitle->getText()) &&
 192+ preg_match('/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/',$this->mTitle->getText()) &&
193193 $action=='view'
194194 ) {
195195 wfProfileOut( $fname );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r9391* (bug 2384) Fix typo in regex for IP address checkingvibber09:26, 11 June 2005
r9392* (bug 2384) Fix typo in regex for IP address checkingvibber09:32, 11 June 2005

Status & tagging log