This project has moved. For the latest updates, please go here.

MVC Report Result, Filename with spaces in it

Jul 3, 2013 at 8:59 AM
I'm using DoddleReport with MVC, and am specifying a Filename that has spaces in it. Looking at the source code I believe this is in ReportResult.cs:

context.HttpContext.Response.AddHeader("content-disposition", string.Format("attachment; filename={0}{1}", FileName, extension));

should have quotes around the filename:
context.HttpContext.Response.AddHeader("content-disposition", string.Format("attachment; filename="{0}{1}"", FileName, extension));

I was going to try and check this and setup a pull request, but I've never used Mercurial before, so it might take me a while to get setup
Jul 3, 2013 at 9:58 AM
Just sent a pull request with this change, and it seems to work