mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 01:50:33 -04:00
dir in newfile has to start with /
This commit is contained in:
parent
43bae1b473
commit
43ac43d7af
1 changed files with 1 additions and 1 deletions
|
|
@ -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'], '/\\') : '';
|
||||
|
|
|
|||
Loading…
Reference in a new issue