mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 20:13:52 +08:00
#17612: Removing input validation in warmup settings page
Work Items:17612 --HG-- branch : 1.x
This commit is contained in:
@@ -1,13 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
using System.Web;
|
|
||||||
using System.Web.Mvc;
|
using System.Web.Mvc;
|
||||||
using Orchard.ContentManagement;
|
using Orchard.ContentManagement;
|
||||||
using Orchard.Core.Contents.Controllers;
|
using Orchard.Core.Contents.Controllers;
|
||||||
using Orchard.Environment.Warmup;
|
|
||||||
using Orchard.FileSystems.AppData;
|
using Orchard.FileSystems.AppData;
|
||||||
using Orchard.Localization;
|
using Orchard.Localization;
|
||||||
using Orchard.Security;
|
using Orchard.Security;
|
||||||
@@ -16,16 +11,15 @@ using Orchard.UI.Notify;
|
|||||||
using Orchard.Warmup.Services;
|
using Orchard.Warmup.Services;
|
||||||
|
|
||||||
namespace Orchard.Warmup.Controllers {
|
namespace Orchard.Warmup.Controllers {
|
||||||
|
[ValidateInput(false)]
|
||||||
public class AdminController : Controller, IUpdateModel {
|
public class AdminController : Controller, IUpdateModel {
|
||||||
private readonly IWarmupScheduler _warmupScheduler;
|
private readonly IWarmupScheduler _warmupScheduler;
|
||||||
private readonly IAppDataFolder _appDataFolder;
|
|
||||||
|
|
||||||
public AdminController(
|
public AdminController(
|
||||||
IOrchardServices services,
|
IOrchardServices services,
|
||||||
IWarmupScheduler warmupScheduler,
|
IWarmupScheduler warmupScheduler,
|
||||||
IAppDataFolder appDataFolder) {
|
IAppDataFolder appDataFolder) {
|
||||||
_warmupScheduler = warmupScheduler;
|
_warmupScheduler = warmupScheduler;
|
||||||
_appDataFolder = appDataFolder;
|
|
||||||
Services = services;
|
Services = services;
|
||||||
|
|
||||||
T = NullLocalizer.Instance;
|
T = NullLocalizer.Instance;
|
||||||
|
|||||||
Reference in New Issue
Block a user