Skip to content

Commit b2b49c1

Browse files
committed
Fix decoding url-encoded tags containing '+' spaces
1 parent 09f94d8 commit b2b49c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

YamlDotNet/Core/Scanner.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,6 +2145,11 @@ private string ScanTagUri(string head, Mark start)
21452145
{
21462146
tag.Append(ScanUriEscapes(start));
21472147
}
2148+
else if (analyzer.Check('+'))
2149+
{
2150+
tag.Append(' ');
2151+
Skip();
2152+
}
21482153
else
21492154
{
21502155
tag.Append(ReadCurrentCharacter());

0 commit comments

Comments
 (0)