From 0d52f45c9b0a4a9821dd4d627911b35d8536a063 Mon Sep 17 00:00:00 2001 From: Shohei Akita Date: Mon, 25 May 2015 11:23:27 +0900 Subject: [PATCH] =?UTF-8?q?MODXMailer=E3=81=AB=E3=81=A6=E4=B8=80=E9=83=A8?= =?UTF-8?q?=E3=82=A8=E3=83=B3=E3=83=86=E3=82=A3=E3=83=86=E3=82=A3=E6=96=87?= =?UTF-8?q?=E5=AD=97=E3=81=AE=E3=82=B5=E3=83=8B=E3=82=BF=E3=82=A4=E3=82=BA?= =?UTF-8?q?=E5=9B=9E=E9=81=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ' 「'」 アポストロフィ ‘ 「‘」 左のシングルクォーテーション ’ 「’」 右のシングルクォーテーション " 「"」 ダブルクォーテーション “ 「“」 左のダブルクォーテーション ” 「”」 右のダブルクォーテーション --- manager/includes/extenders/modxmailer.class.inc.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/manager/includes/extenders/modxmailer.class.inc.php b/manager/includes/extenders/modxmailer.class.inc.php index b655e58cc3..b82d2aaac9 100644 --- a/manager/includes/extenders/modxmailer.class.inc.php +++ b/manager/includes/extenders/modxmailer.class.inc.php @@ -110,6 +110,17 @@ public function Send() { if(strpos($this->Body, $sanitize_seed)!==false) $this->Body = str_replace($sanitize_seed, '', $this->Body); if(strpos($this->Subject, $sanitize_seed)!==false) $this->Subject = str_replace($sanitize_seed, '', $this->Subject); + $target = array( + "sanitized_by_modx& #039"=>"'", + "sanitized_by_modx& #145"=>"'", + "sanitized_by_modx& #146"=>"'", + "sanitized_by_modx& #034"=>"\"", + "sanitized_by_modx& #147"=>"\"", + "sanitized_by_modx& #148"=>"\"", + """=>"\"" + ); + $this->Body = str_replace(array_keys($target), array_values($target), $this->Body); + try { if(!$this->PreSend()) return false; return $this->PostSend();