summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazutaka Miyasaka <kazmiya@gmail.com>2011-06-06 19:01:06 +0900
committerAndreas Gohr <andi@splitbrain.org>2011-06-14 21:29:12 +0200
commit781f882889517a892f5b7b6108e6f334f646301a (patch)
treeaca84e7c5fc51fe789d1c1f1c540479e8d9084de
parent7099f31c478c4a9923104d44ad6752ef13033ca5 (diff)
downloadrpg-781f882889517a892f5b7b6108e6f334f646301a.tar.gz
rpg-781f882889517a892f5b7b6108e6f334f646301a.tar.bz2
fixed email subject encoding bug ($enc_subj typo)
-rw-r--r--inc/mail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/mail.php b/inc/mail.php
index bd6c0db6a..8742e17f6 100644
--- a/inc/mail.php
+++ b/inc/mail.php
@@ -114,7 +114,7 @@ function _mail_send_action($data) {
if(!utf8_isASCII($subject)) {
$enc_subj = '=?UTF-8?Q?'.mail_quotedprintable_encode($subject,0).'?=';
// Spaces must be encoded according to rfc2047. Use the "_" shorthand
- $enc_sub = preg_replace('/ /', '_', $enc_sub);
+ $enc_subj = preg_replace('/ /', '_', $enc_subj);
// quoted printable has length restriction, use base64 if needed
if(strlen($subject) > 74){