From 9c862487f4db1794ac95410eb9c546d80c897554 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 12 Nov 2013 10:16:38 -0800 Subject: [PATCH] Removed sanity regex since there are too many random formats to track Change-Id: I9da57ac5b59372324fbe0c627f012c638c88fca0 --- maintenance/cleanupUploadStash.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php index 2300694f4f..d8bfd98644 100644 --- a/maintenance/cleanupUploadStash.php +++ b/maintenance/cleanupUploadStash.php @@ -119,13 +119,6 @@ class UploadStashCleanup extends Maintenance { } $i = 0; foreach ( $iterator as $file ) { - // Absolute sanity check for stashed files and file segments - $base = basename( $file ); - // @TODO: why are there thumbnails stored in here? - if ( !preg_match( '#(^\d{14}!|\.\d+\.\w+\.\d+$|-\w{12}\.\w{6}\.\d+\.)#', $base ) ) { - $this->output( "Skipped non-stash $file\n" ); - continue; - } if ( wfTimestamp( TS_UNIX, $tempRepo->getFileTimestamp( "$dir/$file" ) ) < $cutoff ) { $status = $tempRepo->quickPurge( "$dir/$file" ); if ( !$status->isOK() ) { -- 2.20.1