提交 21f4b323 编写于 作者: K kohsuke

remove \0s from e-mail. See...

remove \0s from e-mail. See http://www.nabble.com/Problems-with-NULL-characters-in-generated-output-td25005177.html

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20790 71c3de6d-444a-0410-be80-ed276b4c234a
上级 7b4c3fcc
......@@ -249,6 +249,7 @@ public class MailSender {
Pattern.quote(ws.getRemote()) + "|" + Pattern.quote(ws.toURI().toString()) + ")[/\\\\]?([^:#\\s]*)");
}
for (String line : lines) {
line = line.replace('\0',' '); // shall we replace other control code? This one is motivated by http://www.nabble.com/Problems-with-NULL-characters-in-generated-output-td25005177.html
if (wsPattern != null) {
// Perl: $line =~ s{$rx}{$path = $2; $path =~ s!\\\\!/!g; $workspaceUrl . $path}eg;
Matcher m = wsPattern.matcher(line);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册