Skip to content
Snippets Groups Projects
Commit ffeadf44 authored by User expired's avatar User expired
Browse files

openolat#91: trim the exploded flagArray parts as there might be trailing whitespaces

parent e56e66b3
No related branches found
No related tags found
No related merge requests found
...@@ -89,7 +89,9 @@ public enum RepositoryEntryManagedFlag { ...@@ -89,7 +89,9 @@ public enum RepositoryEntryManagedFlag {
RepositoryEntryManagedFlag[] flagEnums = new RepositoryEntryManagedFlag[flagArr.length]; RepositoryEntryManagedFlag[] flagEnums = new RepositoryEntryManagedFlag[flagArr.length];
int count = 0; int count = 0;
for(String flag:flagArr) { for(String rawflag:flagArr) {
// sometimes managed flags come with a trailing space, so trim it here:
String flag = rawflag.trim();
if(StringHelper.containsNonWhitespace(flag)) { if(StringHelper.containsNonWhitespace(flag)) {
try { try {
RepositoryEntryManagedFlag flagEnum = valueOf(flag); RepositoryEntryManagedFlag flagEnum = valueOf(flag);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment