File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
src/main/java/org/jenkinsci/plugins/snsnotify Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >org.jenkins-ci.plugins</groupId >
77 <artifactId >plugin</artifactId >
8- <version >1.409 </version >
8+ <version >1.553 </version >
99 </parent >
1010
1111 <artifactId >snsnotify</artifactId >
Original file line number Diff line number Diff line change @@ -118,12 +118,8 @@ private String getSNSApiEndpoint(String topicArn) {
118118 // it seems to be a reasonably safe assumption, and avoids extra
119119 // configuration variables.
120120
121- if (!topicArn .startsWith ("arn:aws:sns:" )) {
122- return null ;
123- }
124-
125121 String [] arnParts = topicArn .split (":" );
126- if (arnParts .length < 5 ) {
122+ if (arnParts .length < 5 || ! arnParts [ 0 ]. equals ( "arn" ) || ! arnParts [ 2 ]. equals ( "sns" ) ) {
127123 return null ;
128124 }
129125
You can’t perform that action at this time.
0 commit comments