r29211 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29210‎ | r29211 | r29212 >
Date:10:57, 3 January 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* More whitelisting
Modified paths:
  • /trunk/extensions/Translate/MessageChecks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/MessageChecks.php
@@ -108,6 +108,7 @@
109109 if ( preg_match( '/({{ns:)?special(}})?:.*/sDui', $matches[1][$i] ) ) continue;
110110 if ( preg_match( '/{{mediawiki:.*}}/sDui', $matches[1][$i] ) ) continue;
111111 if ( preg_match( '/user([ _]talk)?:.*/sDui', $matches[1][$i] ) ) continue;
 112+ if ( preg_match( '/:?\$[1-9]/sDu', $matches[1][$i] ) ) continue;
112113
113114 $links[] = "[[{$matches[1][$i]}|{$matches[2][$i]}]]";
114115 }

Status & tagging log