fixed Issue 1428:backslash in edit controller URL, thanks Frank

This commit is contained in:
mdipierro
2013-04-06 09:48:51 -05:00
parent a4ff77bdb9
commit 349088a96e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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':