2
new Uri("http://www.test.com/foo%2F").IsWellFormedOriginalString()

returns true when I run it in a test/console app, however when I run this hosted inside ASP.NET in IIS, it returns false.

Halp.

.NET 4.5.1, IIS 8.5

Andrew Bullock
  • 36,616
  • 34
  • 155
  • 231

1 Answers1

1

It was this: http://mikehadlow.blogspot.co.uk/2011/08/how-to-stop-systemuri-un-escaping.html

Why oh why does this madness exist

Andrew Bullock
  • 36,616
  • 34
  • 155
  • 231