Skip to content
This repository was archived by the owner on Jul 2, 2022. It is now read-only.

Commit eb9afd5

Browse files
committed
Fix to Allow Spaces in Source View
Fixes #517
1 parent 8514806 commit eb9afd5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CodeHub.iOS/ViewControllers/Source/FileSourceViewController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private async Task Load(CancellationToken cancelToken)
132132
if (Content == null)
133133
{
134134
var encodedShaRef = System.Net.WebUtility.UrlEncode(_sha);
135-
var encodedPath = _path == null ? null : System.Net.WebUtility.UrlEncode(_path);
135+
var encodedPath = _path == null ? null : Uri.EscapeDataString(_path);
136136

137137
var items = await _applicationService
138138
.GitHubClient.Repository.Content

CodeHub.iOS/ViewControllers/Source/SourceTreeViewController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public SourceTreeViewController(
8888
.GetAllContentsByRef(username, repository, encodedShaRef);
8989
}
9090

91-
var encodedPath = path == null ? null : System.Net.WebUtility.UrlEncode(path);
91+
var encodedPath = path == null ? null : Uri.EscapeDataString(path);
9292

9393
return await applicationService
9494
.GitHubClient.Repository.Content

0 commit comments

Comments
 (0)