aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-10-12 22:14:23 +0000
committerrub <rub@piwigo.org>2007-10-12 22:14:23 +0000
commit608c174245ed8825366e40254e93bd57f777356d (patch)
treedf0953bb7fa52b83be3c390b6ed19f5f8ebfdf44 /include
parent4afa14cc8d3f26f841c92b083355004251d75087 (diff)
Replace htmlentities by htmlspecialchars on NBM in order to send a correct UTF8 mail.
Quote mail charset + add debug mail informations Fix "check user with same mail" where null email was not discarded git-svn-id: http://piwigo.org/svn/trunk@2136 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/functions_mail.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php
index 9d69f474e..b4ad2c4e3 100644
--- a/include/functions_mail.inc.php
+++ b/include/functions_mail.inc.php
@@ -704,6 +704,9 @@ function pwg_mail($to, $args = array())
$filename .= '.html';
}
$file = fopen($filename, 'w+');
+ fwrite($file, $to);
+ fwrite($file, $cvt_subject);
+ fwrite($file, $headers);
fwrite($file, $content);
fclose($file);
return true;