Skip to content

Commit a7f2b33

Browse files
committed
Case Insensitive
Made the string compares case insensitive
1 parent 92c5c2a commit a7f2b33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/StrDss.Service/UploadDeliveryService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,13 +616,13 @@ public async Task<PagedDto<UploadHistoryViewDto>> GetUploadHistory(long? orgId,
616616
}
617617

618618
// We are only a pass if the message is "Active"
619-
if (string.Compare(message, "Active") == 0) result = "Pass";
619+
if (string.Compare(message, "Active", StringComparison.OrdinalIgnoreCase) == 0) result = "Pass";
620620
}
621621
else
622622
{
623623
// This is the case where there was no API call, but we checked to see if they were STRAA exempt
624624
message = text;
625-
result = string.Compare(message, RegistrationValidationText.STRAAExempt) == 0 ? "Pass" : "Fail";
625+
result = string.Compare(message, RegistrationValidationText.STRAAExempt, StringComparison.OrdinalIgnoreCase) == 0 ? "Pass" : "Fail";
626626
}
627627

628628
contents.AppendLine($"\"{result}\",\"{code}\",\"{message}\"," + line.LineText.TrimEndNewLine());

0 commit comments

Comments
 (0)