Skip to content
Snippets Groups Projects
Commit 43ac43d7 authored by Bart Visscher's avatar Bart Visscher
Browse files

dir in newfile has to start with /

parent 43bae1b4
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ if(!OC_User::isLoggedIn()) {
session_write_close();
// Get the params
$dir = isset( $_REQUEST['dir'] ) ? trim($_REQUEST['dir'], '/\\') : '';
$dir = isset( $_REQUEST['dir'] ) ? '/'.trim($_REQUEST['dir'], '/\\') : '';
$filename = isset( $_REQUEST['filename'] ) ? trim($_REQUEST['filename'], '/\\') : '';
$content = isset( $_REQUEST['content'] ) ? $_REQUEST['content'] : '';
$source = isset( $_REQUEST['source'] ) ? trim($_REQUEST['source'], '/\\') : '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment