r65926 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65925‎ | r65926 | r65927 >
Date:00:55, 5 May 2010
Author:tstarling
Status:ok
Tags:
Comment:
(bug 23400) Allow decimal point in seek time.
Modified paths:
  • /trunk/tools/upload-scripts/thumb-handler.php (modified) (history)

Diff [purge]

Index: trunk/tools/upload-scripts/thumb-handler.php
@@ -26,7 +26,7 @@
2727 $params['archived'] = 1;
2828 }
2929 } elseif ( preg_match('!^(?:http://upload.wikimedia.org)?/+([\w-]*)/([\w-]*)/thumb(/archive|)/\w/\w\w/([^/]*\.(?:(?i)ogg|ogv|oga))/' .
30 - '(mid|seek(?:=|%3D|%3d)\d+)-([^/]*)$!', $uri, $matches ) )
 30+ '(mid|seek(?:=|%3D|%3d)[0-9.]+)-([^/]*)$!', $uri, $matches ) )
3131 {
3232 list( $all, $site, $lang, $arch, $filename, $timeFull, $fn2 ) = $matches;
3333 $params = array( 'f' => $filename );

Status & tagging log