r1242 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r1241‎ | r1242 | r1243 >
Date:18:34, 18 March 2003
Author:lcrocker
Status:old
Tags:
Comment:
Fix uploaded file permissions.
Modified paths:
  • /trunk/phpwiki/newcodebase/SpecialUpload.php (modified) (history)

Diff [purge]

Index: trunk/phpwiki/newcodebase/SpecialUpload.php
@@ -123,6 +123,7 @@
124124 if ( ! move_uploaded_file( $wpUploadTempName, $wgSavedFile ) ) {
125125 $wgOut->fileCopyError( $wpUploadTempName, $wgSavedFile );
126126 }
 127+ chmod( $wgSavedFile, 0644 );
127128 }
128129
129130 function unsaveUploadedFile()

Status & tagging log