From 349088a96eb53be04e895407bd366842bca77d12 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 6 Apr 2013 09:48:51 -0500 Subject: [PATCH] fixed Issue 1428:backslash in edit controller URL, thanks Frank --- VERSION | 2 +- applications/admin/controllers/default.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 951f7e2a..3734e654 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.5-stable+timestamp.2013.04.06.09.43.40 +Version 2.4.5-stable+timestamp.2013.04.06.09.48.12 diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index 5881d16a..9afe7ea9 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -708,7 +708,7 @@ def edit(): cfilename = os.path.join(request.args[0], 'controllers', request.args[2] + '.py') if os.path.exists(apath(cfilename, r=request)): - edit_controller = URL('edit', args=[cfilename]) + edit_controller = URL('edit',args=[cfilename.replace(os.sep, "/")]) view = request.args[3].replace('.html', '') view_link = URL(request.args[0], request.args[2], view) elif filetype == 'python' and request.args[1] == 'controllers':