dir in newfile has to start with /

remotes/origin/stable5
Bart Visscher 12 years ago
parent 43bae1b473
commit 43ac43d7af
  1. 2
      apps/files/ajax/newfile.php

@ -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…
Cancel
Save