Skip to content

Commit

Permalink
Changed upload file copy method from !@copy to !@move_uploaded_file -…
Browse files Browse the repository at this point in the history
… which makes PHP a bit less likely to fall over if the setup isn't quite right. As per bug in Forum Thread at http://sourceforge.net/forum/forum.php?thread_id=951345&forum_id=254599

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@713 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Oct 13, 2003
1 parent a56d389 commit a618dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/tokens.php
Expand Up @@ -923,7 +923,7 @@
$the_file_name = $_FILES['the_file']['name'];
$the_file = $_FILES['the_file']['tmp_name'];
$the_full_file_path = $homedir."/".$the_file_name;
if (!@copy($the_file, $the_path . "/" . $the_file_name))
if (!@move_uploaded_file($the_file, $the_full_file_path))
{
$errormessage="<b><font color='red'>"._ERROR.":</font> "._TC_UPLOADFAIL."</b>\n";
form($errormessage);
Expand Down

0 comments on commit a618dab

Please sign in to comment.