From: <sy...@us...> - 2005-11-29 15:08:03
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5398 Modified Files: Tag: BRANCH-1-9 tiki-editpage.php Log Message: to have the img server readable on some system Index: tiki-editpage.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-editpage.php,v retrieving revision 1.89.2.49 retrieving revision 1.89.2.50 diff -u -d -r1.89.2.49 -r1.89.2.50 --- tiki-editpage.php 4 Nov 2005 21:45:23 -0000 1.89.2.49 +++ tiki-editpage.php 29 Nov 2005 15:07:54 -0000 1.89.2.50 @@ -169,7 +169,8 @@ $picname = $_FILES['picfile1']['name']; if (preg_match('/\.(gif|png|jpe?g)$/i',$picname)) { - move_uploaded_file($_FILES['picfile1']['tmp_name'], "$wiki_up/$picname"); + move_uploaded_file($_FILES['picfile1']['tmp_name'], "$wiki_up/$picname"); + chmod("$wiki_up/$picname", 0755); // seems necessary on some system (see move_uploaded_file doc on php.net } //is done in js... $_REQUEST["edit"] = $_REQUEST["edit"] . "{img src=\"img/wiki_up/$tikidomain$picname\"}"; } |