Yes, really world writeable
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 4 Jan 2006 23:24:25 +0000 (23:24 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 4 Jan 2006 23:24:25 +0000 (23:24 +0000)
includes/MessageCache.php

index c6717ef..c3637b7 100755 (executable)
@@ -98,7 +98,9 @@ class MessageCache {
                }
                
                $filename = "$wgLocalMessageCache/messages-$wgDBname";
+               $oldUmask = umask( 0 );
                wfMkdirParents( $wgLocalMessageCache, 0777 );
+               umask( $oldUmask );
 
                $file = fopen( $filename, 'w' );
                if ( !$file ) {
@@ -108,6 +110,7 @@ class MessageCache {
 
                fwrite( $file, $hash . $serialized );
                fclose( $file );
+               @chmod( $filename, 0666 );
        }