// bad commit sorry
This commit is contained in:
1 parent
438a3dda2b
commit
a9643c80c3
1 file changed
+1
-2
@@ -151,7 +151,6 @@ class AdminAttachmentsControllerCore extends AdminController
|
|||||||
);
|
);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
do $uniqid = sha1(microtime());
|
do $uniqid = sha1(microtime());
|
||||||
while (file_exists(_PS_DOWNLOAD_DIR_.$uniqid));
|
while (file_exists(_PS_DOWNLOAD_DIR_.$uniqid));
|
||||||
if (!copy($_FILES['file']['tmp_name'], _PS_DOWNLOAD_DIR_.$uniqid))
|
if (!copy($_FILES['file']['tmp_name'], _PS_DOWNLOAD_DIR_.$uniqid))
|
||||||
@@ -182,7 +181,7 @@ class AdminAttachmentsControllerCore extends AdminController
|
|||||||
}
|
}
|
||||||
$return = parent::postProcess();
|
$return = parent::postProcess();
|
||||||
if (!$return && isset($uniqid) && file_exists(_PS_DOWNLOAD_DIR_.$uniqid))
|
if (!$return && isset($uniqid) && file_exists(_PS_DOWNLOAD_DIR_.$uniqid))
|
||||||
@unlink(_PS_DOWNLOAD_DIR_.$uniqid);
|
unlink(_PS_DOWNLOAD_DIR_.$uniqid);
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user