HTML decode URL.

This commit is contained in:
Chris Ross 2014-10-09 15:49:27 -07:00
parent 3e9f251618
commit f35dd45ea6
1 changed files with 1 additions and 0 deletions

View File

@ -143,6 +143,7 @@ namespace E2ETests
var startIndex = responseContent.IndexOf("[[<a href=\"", 0) + "[[<a href=\"".Length;
var endIndex = responseContent.IndexOf("\">link</a>]]", startIndex);
var confirmUrl = responseContent.Substring(startIndex, endIndex - startIndex);
confirmUrl = WebUtility.HtmlDecode(confirmUrl);
response = httpClient.GetAsync(confirmUrl).Result;
ThrowIfResponseStatusNotOk(response);
responseContent = response.Content.ReadAsStringAsync().Result;