projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
849c0a0
)
ImportMailMessage.php
author
Edward
<edward@roojs.com>
Thu, 20 Feb 2014 04:49:00 +0000
(12:49 +0800)
committer
Edward
<edward@roojs.com>
Thu, 20 Feb 2014 04:49:00 +0000
(12:49 +0800)
ImportMailMessage.php
patch
|
blob
|
history
diff --git
a/ImportMailMessage.php
b/ImportMailMessage.php
index
4dc240a
..
97b520e
100644
(file)
--- a/
ImportMailMessage.php
+++ b/
ImportMailMessage.php
@@
-74,7
+74,7
@@
class Pman_Crm_ImportHtml extends Pman_Core_ConvertStyle
'ontable' =>'crm_mailing_list_message'
));
$htmlFile->onUpload(false);
- // print_r($htmlFile);
+
if($htmlFile->mimetype != 'text/html')
{
$this->jerr('accept html file only!');
@@
-87,6
+87,7
@@
class Pman_Crm_ImportHtml extends Pman_Core_ConvertStyle
$data = $this->convertStyle('', $htmlFile->getStoreName(), false);
$htmlFile->delete();
+
unlink($htmlFile->getStoreName()) or die('Unable to delete the file');
$this->jok($data);