apps/files/ajax/newfolder.php 1 location
|
@@ 33-40 (lines=8) @@
|
| 30 |
|
exit(); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
if (!\OC\Files\Filesystem::file_exists($dir . '/')) { |
| 34 |
|
$result['data'] = array('message' => (string)$l10n->t( |
| 35 |
|
'The target folder has been moved or deleted.'), |
| 36 |
|
'code' => 'targetnotfound' |
| 37 |
|
); |
| 38 |
|
OCP\JSON::error($result); |
| 39 |
|
exit(); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
//TODO why is stripslashes used on foldername here but not in newfile.php? |
| 43 |
|
$target = $dir . '/' . stripslashes($foldername); |
apps/files/ajax/newfile.php 1 location
|
@@ 74-81 (lines=8) @@
|
| 71 |
|
exit(); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
if (!\OC\Files\Filesystem::file_exists($dir . '/')) { |
| 75 |
|
$result['data'] = array('message' => (string)$l10n->t( |
| 76 |
|
'The target folder has been moved or deleted.'), |
| 77 |
|
'code' => 'targetnotfound' |
| 78 |
|
); |
| 79 |
|
OCP\JSON::error($result); |
| 80 |
|
exit(); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
//TODO why is stripslashes used on foldername in newfolder.php but not here? |
| 84 |
|
$target = $dir.'/'.$filename; |