Skip to content

Instantly share code, notes, and snippets.

View danlash's full-sized avatar

Dan Lash danlash

View GitHub Profile
@danlash
danlash / JsonExploit
Created February 15, 2011 19:24
A proposal to allow JsonResult from GET in ASP.NET MVC except for arrays
class Program
{
static void Main(string[] args)
{
var model = new {AccountNumber = 123};
var arr = new[] { model };
Console.WriteLine(CurrentJson(model));
Console.WriteLine(CurrentJson(arr));
Console.WriteLine(CurrentJson(arr,true));
@danlash
danlash / Output.txt
Created April 11, 2012 19:20
.NET Exceptions Thrown By Event Handlers
> EventExceptions.exe
Before Exception
Implicit caught: Exception!
Before Exception
Explicit caught: Exception!
After Exception
>

Keybase proof

I hereby claim:

  • I am danlash on github.
  • I am danlash (https://keybase.io/danlash) on keybase.
  • I have a public key ASBjEzSjmQ9mNPN8i1n7OooI0AsxOEef60GLXGKlH75wDgo

To claim this, I am signing this object: