mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
[FIXED HUDSON-6252] fix bad index calculation in SubText.subText which
caused StringIndexOutOfBoundsException in UrlAnnotator. Added test. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30102 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
be39749c1d
commit
c2fd840846
2 files changed
+16
-3
No files matched your search
@@ -98,7 +98,7 @@ public class MarkupText extends AbstractMarkupText {
|
||||
@Override
|
||||
public SubText subText(int start, int end) {
|
||||
return MarkupText.this.subText(this.start+start,
|
||||
end<0 ? this.end+1+end : this.end+end);
|
||||
end<0 ? this.end+1+end : this.start+end);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user