From b3aaef7d0ea2ce6a46ff0b71f86c9a6b13b42a4c Mon Sep 17 00:00:00 2001 From: "vnbaaij@hotmail.com" Date: Thu, 29 Dec 2011 11:49:16 -0100 Subject: [PATCH] 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) --- .../umbraco/developer/Python/editPython.aspx.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Python/editPython.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Python/editPython.aspx.cs index b23a922c67..c8530145d6 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Python/editPython.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Python/editPython.aspx.cs @@ -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;