fixed Issue 1428:backslash in edit controller URL, thanks Frank
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user