Skip to content

Commit

Permalink
fix #1268 メールプラグインのメール本文がエスケープされていない問題を解決
Browse files Browse the repository at this point in the history
  • Loading branch information
kato committed Oct 8, 2019
1 parent e1ae2e4 commit edfa5bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Baser/Plugin/Mail/View/Helper/MaildataHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ class MaildataHelper extends BcTextHelper {
* @param string $type コントロールタイプ
* @param mixed $value 変換前の値
* @param array|string $options コントロールソース
* @param bool $escape エスケープ処理を行うかどうか (初期値 : true)
* @return string メール用データ
*/
public function control($type, $value, $options = "") {
return ' ' . $this->toDisplayString($type, $value, $options);
public function control($type, $value, $options = "", $escape = true) {
$toDisplayString = $this->toDisplayString($type, $value, $options));
return $escape ? ' ' . h($toDisplayString) : ' ' . $toDisplayString;
}

/**
Expand Down

0 comments on commit edfa5bd

Please sign in to comment.