Fixes issue #30422 The textbox was filled with the physical path (i.e /parent/file) to the file. It only needs the loggical path (i.e. parent/file)

This commit is contained in:
vnbaaij@hotmail.com
2011-12-29 11:49:16 -01:00
parent f740cf50c2
commit b3aaef7d0e

View File

@@ -79,8 +79,9 @@ namespace umbraco.cms.presentation.developer
// validate extension
IOHelper.ValidateFileExtension(file, validScriptingExtensions());
// we need to move the full path and then the preceeding slash
pythonFileName.Text = file.Replace(IOHelper.MapPath(SystemDirectories.MacroScripts), "").Substring(1);
//// we need to move the full path and then the preceeding slash
// The textbox only needs to show the requested file (and parentfolders)
pythonFileName.Text = Request.QueryString["file"];
StreamReader SR;
string S;