* ResultPages.cs:

* NpgsqlBlogProvider.cs: PageIndex is now one based

* AccountController.cs: Fixes a typo in the registration mail

* AdminController.cs: Should fix a 500 at Registration validation

* BasketController.cs: WIP

* BlogsController.cs: page indexes are now one based

* FrontOfficeController.cs: cleanning

* GoogleController.cs: code formatting

* Global.asax.cs: Default route data to "controller" "action" "id"

* BBCodeHelper.cs: Allows not closed "url" BBcodes 

* InitDb.aspx: StatisPage.master was renamed

* packages.config: Google references require System.Web 4.0.0.0 ...
  removed
This commit is contained in:
Paul Schneider 2015-02-08 20:59:08 +01:00
commit f54336852b
12 changed files with 29 additions and 54 deletions

View file

@ -204,9 +204,9 @@ namespace Yavsc.Controllers
{
try {
// get files from the request
string fnre = "[A-Za-z0-9~\\-.]+";
string fnre = "[A-Za-z0-9~\\-.]+";
HttpFileCollectionBase hfc = Request.Files;
// TODO mime-magic on content, and file name filter
foreach (String h in hfc.AllKeys) {
if (!Regex.Match (hfc [h].FileName, fnre).Success) {
ViewData ["Message"] = "File name refused";
@ -232,9 +232,5 @@ namespace Yavsc.Controllers
}
}
ActionResult YourCommands ()
{
return View (GetBasket());
}
}
}