Validates user control directory in assembly browser
This commit is contained in:
@@ -41,6 +41,9 @@ namespace umbraco.developer
|
||||
isUserControl = true;
|
||||
string fileName = Request.QueryString["fileName"];
|
||||
|
||||
IOHelper.ValidateEditPath(fileName, SystemDirectories.Usercontrols);
|
||||
|
||||
|
||||
if (System.IO.File.Exists(IOHelper.MapPath("~/" + fileName)))
|
||||
{
|
||||
UserControl oControl = (UserControl)LoadControl(@"~/" + fileName);
|
||||
|
||||
Reference in New Issue
Block a user