mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-18 21:05:01 -04:00
We use UTF-8 everywhere. Fixes ticket #1285.
This commit is contained in:
@@ -56,7 +56,7 @@ class User_Profile_Controller extends Controller {
|
||||
->to($user->email)
|
||||
->subject(html::clean($form->message->subject->value))
|
||||
->header("Mime-Version", "1.0")
|
||||
->header("Content-type", "text/html; charset=iso-8859-1")
|
||||
->header("Content-type", "text/html; charset=UTF-8")
|
||||
->reply_to($form->message->reply_to->value)
|
||||
->message(html::purify($form->message->message->value))
|
||||
->send();
|
||||
|
||||
@@ -65,14 +65,14 @@ class Sendmail_Test extends Gallery_Unit_Test_Case {
|
||||
"From: from@gallery3.com\n" .
|
||||
"Reply-To: public@gallery3.com\n" .
|
||||
"MIME-Version: 1.0\n" .
|
||||
"Content-type: text/html; charset=iso-8859-1\r\n" .
|
||||
"Content-Type: text/html; charset=UTF-8\r\n" .
|
||||
"Subject: Test Email Unit test\r\n\r\n" .
|
||||
"<html><body><p>This is an html msg</p></body></html>";
|
||||
$result = Sendmail_For_Test::factory()
|
||||
->to("receiver@someemail.com")
|
||||
->subject("Test Email Unit test")
|
||||
->header("MIME-Version", "1.0")
|
||||
->header("Content-type", "text/html; charset=iso-8859-1")
|
||||
->header("Content-Type", "text/html; charset=UTF-8")
|
||||
->message("<html><body><p>This is an html msg</p></body></html>")
|
||||
->send()
|
||||
->send_text;
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
font-size: 1.1em;
|
||||
}
|
||||
</style>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title><?= t("Something went wrong!") ?></title>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
margin: 0 auto;
|
||||
}
|
||||
</style>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<title><?= t("Something went wrong!") ?></title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -185,7 +185,7 @@ class notification {
|
||||
->to($email)
|
||||
->subject($pending->subject)
|
||||
->header("Mime-Version", "1.0")
|
||||
->header("Content-type", "text/html; charset=utf-8")
|
||||
->header("Content-Type", "text/html; charset=UTF-8")
|
||||
->message($pending->body)
|
||||
->send();
|
||||
$pending->delete();
|
||||
@@ -199,7 +199,7 @@ class notification {
|
||||
->to($email)
|
||||
->subject(t("Multiple events have occurred")) // @todo fix this terrible subject line
|
||||
->header("Mime-Version", "1.0")
|
||||
->header("Content-type", "text/html; charset=utf-8")
|
||||
->header("Content-Type", "text/html; charset=UTF-8")
|
||||
->message($text)
|
||||
->send();
|
||||
}
|
||||
@@ -213,7 +213,7 @@ class notification {
|
||||
->to($subscribers)
|
||||
->subject($subject)
|
||||
->header("Mime-Version", "1.0")
|
||||
->header("Content-type", "text/html; charset=utf-8")
|
||||
->header("Content-Type", "text/html; charset=UTF-8")
|
||||
->message($text)
|
||||
->send();
|
||||
} else {
|
||||
|
||||
@@ -36,7 +36,7 @@ class rest_Core {
|
||||
}
|
||||
|
||||
if (preg_match('/^[$A-Za-z_][0-9A-Za-z_]*$/', $callback) == 1) {
|
||||
header("Content-type: application/javascript");
|
||||
header("Content-type: application/javascript; charset=UTF-8");
|
||||
print "$callback(" . json_encode($data) . ")";
|
||||
} else {
|
||||
throw new Rest_Exception(
|
||||
|
||||
@@ -61,7 +61,7 @@ class Password_Controller extends Controller {
|
||||
->to($user->email)
|
||||
->subject(t("Password Reset Request"))
|
||||
->header("Mime-Version", "1.0")
|
||||
->header("Content-type", "text/html; charset=iso-8859-1")
|
||||
->header("Content-type", "text/html; charset=UTF-8")
|
||||
->message($message->render())
|
||||
->send();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user