-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[main] Update dependencies from dotnet/efcore dotnet/runtime #35547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a100832
903d164
d046abf
8566b38
2008974
903be6a
97d9233
10d5834
439b977
866e4df
b469ef0
93d559d
4fd1e36
6e4a318
1e7fe92
d233f5c
5b9aa8a
9330eed
0c0378d
cb404b1
b908867
c4580c1
b19a7e8
47ca366
5c65c52
0dc7277
4bff1b7
ab619a9
e3db44a
16a960b
dbea160
9550049
9ac655f
543efec
992d844
1404d93
0d79864
f484c66
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -192,9 +192,10 @@ public void Delete(string key, CookieOptions options) | |
|
|
||
| for (var i = 0; i < values.Length; i++) | ||
| { | ||
| if (!rejectPredicate(values[i], encodedKeyPlusEquals, options)) | ||
| var value = values[i]!; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same |
||
| if (!rejectPredicate(value, encodedKeyPlusEquals, options)) | ||
| { | ||
| newValues.Add(values[i]); | ||
| newValues.Add(value); | ||
| } | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,6 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Diagnostics.CodeAnalysis; | ||
| using System.Diagnostics.Contracts; | ||
| using Microsoft.Extensions.Primitives; | ||
|
|
@@ -31,12 +29,9 @@ public static bool TryParseValues(StringValues values, IDictionary<string, strin | |
| if (TryParseValue(value, ref index, supportsMultipleValues, out var parsedName, out var parsedValue)) | ||
| { | ||
| // The entry may not contain an actual value, like " , " | ||
| if (parsedName != null && parsedValue != null) | ||
| { | ||
| var name = enableCookieNameEncoding ? Uri.UnescapeDataString(parsedName.Value.Value) : parsedName.Value.Value; | ||
| store[name] = Uri.UnescapeDataString(parsedValue.Value.Value); | ||
| hasFoundValue = true; | ||
| } | ||
|
Comment on lines
-34
to
-39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Revert. TryParseValue's [NotNullWhen(true)] markers are wrong, remove them. The parsedName and parsedValue can be null when supportsMultipleValues = true. |
||
| var name = enableCookieNameEncoding ? Uri.UnescapeDataString(parsedName.Value.Value!) : parsedName.Value.Value!; | ||
| store[name] = Uri.UnescapeDataString(parsedValue.Value.Value!); | ||
| hasFoundValue = true; | ||
| } | ||
| else | ||
| { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.