Fix sample browser loading samples with big titles

This commit is contained in:
Frank A. Krueger 2018-04-15 15:55:37 -07:00
parent 3cd9abe420
commit 6a9bf67950
No known key found for this signature in database
GPG Key ID: 0471C67474FFE664
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ namespace AspNetCoreMvc.Controllers
[Route ("/Samples/Run/{name}")]
public IActionResult Run (string name, bool shared)
{
if (string.IsNullOrWhiteSpace (name) || name.Length > 32)
if (string.IsNullOrWhiteSpace (name) || name.Length > 128)
return BadRequest ();
var s = Samples.FirstOrDefault (x => x.Title == name);