Fix sample browser loading samples with big titles
This commit is contained in:
		
							parent
							
								
									3cd9abe420
								
							
						
					
					
						commit
						6a9bf67950
					
				|  | @ -53,7 +53,7 @@ namespace AspNetCoreMvc.Controllers | ||||||
|         [Route ("/Samples/Run/{name}")] |         [Route ("/Samples/Run/{name}")] | ||||||
|         public IActionResult Run (string name, bool shared) |         public IActionResult Run (string name, bool shared) | ||||||
|         { |         { | ||||||
|             if (string.IsNullOrWhiteSpace (name) || name.Length > 32) |             if (string.IsNullOrWhiteSpace (name) || name.Length > 128) | ||||||
|                 return BadRequest (); |                 return BadRequest (); | ||||||
| 
 | 
 | ||||||
|             var s = Samples.FirstOrDefault (x => x.Title == name); |             var s = Samples.FirstOrDefault (x => x.Title == name); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue