1
0
mirror of https://github.com/bitwarden/server synced 2025-12-20 02:03:46 +00:00

lowercase op string comparisons (#2129)

This commit is contained in:
Kyle Spearrin
2022-07-19 13:32:00 -04:00
committed by GitHub
parent 903273885b
commit 1764d2446e
2 changed files with 17 additions and 7 deletions

View File

@@ -220,7 +220,8 @@ namespace Bit.Scim.Controllers.v2
var operationHandled = false;
var replaceOp = model.Operations?.FirstOrDefault(o => o.Op == "replace");
var replaceOp = model.Operations?.FirstOrDefault(o =>
o.Op?.ToLowerInvariant() == "replace");
if (replaceOp != null)
{
if (replaceOp.Value.TryGetProperty("active", out var activeProperty))