Hi all and Hi Clément,

I installed SSP with debian package. It works fine. Great.

I just found a possible feature to improve: send token by mail. In fact,
there's no encoding headers. I would propose this patch. I hope this help.

Thanks,

-- 
Anthony Milan

Centre Hospitalier de Saint-Brieuc
Direction du système d'information
22027 Saint-Brieuc Cedex 1
Tél : 02 96 01 78 39 (67839)
Fax : 02 96 01 75 57

--- sendtoken.php.old   2011-05-05 15:51:57.000000000 +0200
+++ sendtoken.php       2011-05-05 15:56:27.000000000 +0200
@@ -146,8 +146,11 @@
     $reset_message = str_replace("{mail}", $mail, $reset_message);
     $reset_message = str_replace("{url}", $reset_url, $reset_message);

+    $headers .= 'Content-type: text; charset=utf-8' . "\r\n";
+
     # Send message
-    if ( mail($mail, $messages["resetsubject"], $reset_message) ) {
+    if ( mail($mail,'=?UTF-8?B?'.base64_encode($messages["resetsubject"]).'?=',
+         $reset_message, $headers) ) {
         $result = "tokensent";
     } else {
         $result = "tokennotsent";
_______________________________________________
ltb-users mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-users

Reply via email to