Skip to content

Commit

Permalink
Merge pull request #339 from shabtaisharon/NETSDK-173
Browse files Browse the repository at this point in the history
Fix an issue with & in filename
  • Loading branch information
Sharon Shabtai authored Aug 9, 2019
2 parents 8a4c415 + 7b6803e commit 5262fe2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Ds3/Runtime/HttpHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal static class HttpHelper
/// <summary>
/// Specified as "Query" by the RFC, forward slash (/) and question mark (?) without semicolon (;) and plus (+)
/// </summary>
private static readonly char[] AllowedCharsQuery = Pchar.Concat("/?".ToArray()).Where(ch => ch != ';' && ch != '+').ToArray();
private static readonly char[] AllowedCharsQuery = Pchar.Concat("/?".ToArray()).Where(ch => ch != ';' && ch != '+' && ch != '&').ToArray();

/// <summary>
/// Specified as "Path" by the RFC, forward slash (/) without semicolon (;)
Expand Down
2 changes: 1 addition & 1 deletion IntegrationTestDS3/IntegrationTestDS3Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1907,7 +1907,7 @@ public void TestPercentEncodingOfQuery()
var contentBytes = System.Text.Encoding.UTF8.GetBytes(content);
var contentBytesLength = contentBytes.Length;

var fileName = "שרון;/+";
var fileName = "שרון;/+&";
var objects = new List<Ds3Object>
{
new Ds3Object(fileName, contentBytesLength)
Expand Down

0 comments on commit 5262fe2

Please sign in to comment.