1. Clément Bourgeois
  2. SQLServerBackupTool


Clément Bourgeois  committed c1bde13

Fixed bug when no Request.UserLanguages was provided in the request.

When using curl or wget the Request object lacks UserLanguages, API use was broken

  • Participants
  • Parent commits 9c316b3
  • Branches master

Comments (0)

Files changed (1)

File SQLServerBackupTool.Web/Lib/Mvc/ApplicationController.i18n.cs

View file
 using i18n;
+using System.Linq;
 using System.Web;
 using System.Web.Mvc;
         public string __(string text)
-            if (Request == null)
+            if (Request == null || Request.UserLanguages == null || !Request.UserLanguages.Any())
                 return text;