Ticket #6086: patch2.txt

File patch2.txt, 657 bytes (added by jackthecoiner@…, 15 years ago)

Same patch from top-level directory

Line 
1Index: mythplugins/mythweb/modules/video/edit.php
2===================================================================
3--- mythplugins/mythweb/modules/video/edit.php  (revision 19600)
4+++ mythplugins/mythweb/modules/video/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();