Skip to content

Commit

Permalink
Merge pull request DSpace#9569 from saschaszott/patch-34
Browse files Browse the repository at this point in the history
potential array index out of bounds access in SubscriptionDsoMetadataForEmailCompose
  • Loading branch information
tdonohue authored May 10, 2024
2 parents 5dacb5a + 4fc6b07 commit 70b97f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void disseminate(Context context, DSpaceObject dso, OutputStream out) thr
for (String actualMetadata : metadata) {
String[] splitted = actualMetadata.split("\\.");
String qualifier = null;
if (splitted.length == 1) {
if (splitted.length == 3) {
qualifier = splitted[2];
}
var metadataValue = itemService.getMetadataFirstValue(item, splitted[0], splitted[1], qualifier, ANY);
Expand Down

0 comments on commit 70b97f3

Please sign in to comment.