Skip to content

Commit

Permalink
Hakemisto mukaan
Browse files Browse the repository at this point in the history
  • Loading branch information
satuaalto committed Feb 1, 2018
1 parent 94fc4ab commit bbe651e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crm/asiakaslista.php
Expand Up @@ -513,8 +513,9 @@
$content .= "Content-Transfer-Encoding: base64\n" ;
$content .= "Content-Disposition: inline; filename=\"".basename($tiednimi)."\"\n\n";

$handle = fopen($liite, "r");
$sisalto = fread($handle, filesize($liite));
$handle = fopen('/tmp/'.$liite, "r");

$sisalto = fread($handle, filesize('/tmp/'.$liite));
fclose($handle);

$content .= chunk_split(base64_encode($sisalto));
Expand Down

0 comments on commit bbe651e

Please sign in to comment.