mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 13:02:19 +00:00
[FIXED HUDSON-5852] '<' and '&' in the console output was not escaped since 1.349
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28418 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
e1d265bbdb
commit
211f6b5605
6 files changed
+52
-9
No files matched your search
@@ -85,5 +85,14 @@ public class MarkupTextTest extends TestCase {
|
||||
assertEquals("$abc$#def#",text.toString());
|
||||
}
|
||||
|
||||
public void testEscape() {
|
||||
MarkupText text = new MarkupText("&&&");
|
||||
assertEquals("&&&",text.toString());
|
||||
|
||||
text.addMarkup(1,"<foo>");
|
||||
text.addMarkup(2," ");
|
||||
assertEquals("&<foo>& &",text.toString());
|
||||
}
|
||||
|
||||
private static final Pattern pattern = Pattern.compile("issue #([0-9]+)");
|
||||
}
|
||||
Reference in new issue
Block a user