r42761 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42760‎ | r42761 | r42762 >
Date:06:02, 29 October 2008
Author:river
Status:old
Tags:
Comment:
need to list ms1 and ms2 here as well
Modified paths:
  • /trunk/tools/upload-scripts/thumb-handler.php (modified) (history)

Diff [purge]

Index: trunk/tools/upload-scripts/thumb-handler.php
@@ -185,7 +185,7 @@
186186 # Cache the file locally if this is a cache server
187187 $uname = posix_uname();
188188 $server = $uname['nodename'];
189 - if ( $server != 'amane.pmtpa.wmnet' && $server != 'storage1' ) {
 189+ if ( !in_array($server, array('amane.pmtpa.wmnet', 'storage1', 'ms1', 'ms2')) ) {
190190 $dest = pathFromUrl( $_SERVER['REQUEST_URI'] );
191191 if( $dest ) {
192192 if ( strpos( $dest, '..' ) === false ) {

Status & tagging log