X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=ImportMailMessage.php;h=ce4ea30d905b74816b063e3e43e3bb0b7a2ab56b;hp=97b520e35ee164af97b09543abef2e4b95c4e8d5;hb=refs%2Fheads%2Fwip_alan_T5884_add_photo_to_report;hpb=38faa30025717e8b4b8f8b6c3a69f9f603137e8a diff --git a/ImportMailMessage.php b/ImportMailMessage.php index 97b520e3..ce4ea30d 100644 --- a/ImportMailMessage.php +++ b/ImportMailMessage.php @@ -1,8 +1,10 @@ post(); return $this->jerr("not allowed"); } - function post() - { + function post($v) + { if(isset($_REQUEST['_convertToPlain'])) { require_once 'System.php'; @@ -54,9 +56,11 @@ class Pman_Crm_ImportHtml extends Pman_Core_ConvertStyle } require_once 'File/Convert.php'; $fc = new File_Convert($path, 'text/html'); + $plain = $fc->convert('text/plain'); $this->jok(file_get_contents($plain)); } + // Import from URL if(isset($_REQUEST['importUrl'])) {