r1893 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r1892‎ | r1893 | r1894 >
Date:09:53, 7 November 2003
Author:timstarling
Status:old
Tags:
Comment:
Fixed upload bug -- empty filesize
Modified paths:
  • /branches/stable/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: branches/stable/phase3/includes/GlobalFunctions.php
@@ -409,7 +409,7 @@
410410 if ( 0 == wfNumRows( $res ) ) {
411411 $sql = "INSERT INTO image (img_name,img_size,img_timestamp," .
412412 "img_description,img_user,img_user_text) VALUES ('" .
413 - wfStrencode( $name ) . "',{$size},'{$now}','" .
 413+ wfStrencode( $name ) . "'," . (int)$size . ",{$now}','" .
414414 wfStrencode( $desc ) . "', '" . $wgUser->getID() .
415415 "', '" . wfStrencode( $wgUser->getName() ) . "')";
416416 wfQuery( $sql, $fname );

Status & tagging log