Ticket #6086: patch.txt

File patch.txt, 555 bytes (added by jackthecoiner@…, 11 years ago)

patch fixes file permissions

Line 
1Index: edit.php
2===================================================================
3--- edit.php    (revision 19600)
4+++ edit.php    (working copy)
5@@ -58,6 +58,7 @@
6         if (is_uploaded_file($_FILES['coverfile']['tmp_name'])) {
7             $filename = setting('VideoArtworkDir', hostname).'/id-'.$_REQUEST['intid'].'.jpg';
8             move_uploaded_file($_FILES['coverfile']['tmp_name'], $filename);
9+           chmod($filename, 0644); // make cover file readable by other users
10             $Video->cover_file = $filename;
11         }
12         $Video->save();