Skip to content

Commit

Permalink
fix #1294 メールプラグイン選択リストで特定の文字で終わると文字化けを起こす問題を解決 (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
katokaisya authored and ryuring committed Nov 12, 2019
1 parent a1fa33f commit bfd7089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Baser/Plugin/Mail/Model/MailField.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function formatSource($source) {
$sourceList = [];
$values = explode('|', $source);
foreach ($values as $value) {
$sourceList[] = preg_replace("/(^\s+|\r|\n|\s+$)/", '', $value);
$sourceList[] = preg_replace("/(^\s+|\||\r|\n|\s+$)/u", '', $value);
}
return implode('|', $sourceList);
}
Expand Down

0 comments on commit bfd7089

Please sign in to comment.