mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
corrected comments
This commit is contained in:
parent
a7bccd4fe0
commit
dabeabc553
@ -35,14 +35,14 @@ namespace Jellyfin.Server.Middleware
|
|||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
// Only interested in where the querystring is encoded which shows up as one key with everything else in the value.
|
// Only interested in where the querystring is encoded which shows up as one key with nothing in the value.
|
||||||
if (value.Count != 1)
|
if (value.Count != 1)
|
||||||
{
|
{
|
||||||
_store = value;
|
_store = value;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Encoded querystrings have no value, so don't process anything if a values is present.
|
// Encoded querystrings have no value, so don't process anything if a value is present.
|
||||||
var kvp = value.First();
|
var kvp = value.First();
|
||||||
if (!string.IsNullOrEmpty(kvp.Value))
|
if (!string.IsNullOrEmpty(kvp.Value))
|
||||||
{
|
{
|
||||||
@ -55,6 +55,7 @@ namespace Jellyfin.Server.Middleware
|
|||||||
|
|
||||||
if (string.Equals(unencodedKey, kvp.Key, System.StringComparison.Ordinal))
|
if (string.Equals(unencodedKey, kvp.Key, System.StringComparison.Ordinal))
|
||||||
{
|
{
|
||||||
|
// Don't do anything if it's not encoded.
|
||||||
_store = value;
|
_store = value;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user