Permalink
Browse files

Merge pull request #250 from martincostello/Update-Blacklist

Update blacklist
  • Loading branch information...
martincostello committed Dec 22, 2018
2 parents ee2ca4b + a3d3168 commit bb83116e2dd5ed80f5ed36b38d2c38c50c36e500
@@ -83,7 +83,9 @@ public IActionResult Index([FromQuery] int? id)
[Route("ajaxproxy/{*catchall}")]
[Route("bitrix/{*catchall}")]
[Route("blog/{*catchall}")]
[Route("CHANGELOG.txt")]
[Route("cms/{*catchall}")]
[Route("demo/{*catchall}")]
[Route("index.php")]
[Route("invoker/{*catchall}")]
[Route("jmx-console/{*catchall}")]
@@ -96,6 +98,7 @@ public IActionResult Index([FromQuery] int? id)
[Route("site/{*catchall}")]
[Route("sites/{*catchall}")]
[Route("tiny_mce/{*catchall}")]
[Route("umbraco/{*catchall}")]
[Route("uploadify/{*catchall}")]
[Route("web-console/{*catchall}")]
[Route("wordpress/{*catchall}")]
@@ -105,6 +108,7 @@ public IActionResult Index([FromQuery] int? id)
[Route("wp-includes/{*catchall}")]
[Route("wp-links-opml.php")]
[Route("wp-login.php")]
[Route("wp-main.php")]
[Route("xmlrpc.php")]
public ActionResult No() => Redirect(Videos[new Random().Next(0, Videos.Length)]);
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -149,12 +149,15 @@ public async Task Response_Headers_Contains_Expected_Headers()

[Theory]
[InlineData("/admin.php", HttpStatusCode.Found)]
[InlineData("/CHANGELOG.txt", HttpStatusCode.Found)]
[InlineData("/demo/wp-admin/", HttpStatusCode.Found)]
[InlineData("/blog", HttpStatusCode.Found)]
[InlineData("/foo", HttpStatusCode.NotFound)]
[InlineData("/error", HttpStatusCode.InternalServerError)]
[InlineData("/error?id=399", HttpStatusCode.InternalServerError)]
[InlineData("/error?id=400", HttpStatusCode.BadRequest)]
[InlineData("/error?id=600", HttpStatusCode.InternalServerError)]
[InlineData("/umbraco", HttpStatusCode.Found)]
public async Task Can_Load_Resource(string requestUri, HttpStatusCode expected)
{
// Arrange

0 comments on commit bb83116

Please sign in to comment.