|
@@ 182-184 (lines=3) @@
|
| 179 |
|
|
| 180 |
|
// CSRF check |
| 181 |
|
$token = SecurityToken::inst(); |
| 182 |
|
if (empty($data[$token->getName()]) || !$token->check($data[$token->getName()])) { |
| 183 |
|
return new HTTPResponse(null, 400); |
| 184 |
|
} |
| 185 |
|
|
| 186 |
|
// Check parent record |
| 187 |
|
/** @var Folder $parentRecord */ |
|
@@ 261-263 (lines=3) @@
|
| 258 |
|
|
| 259 |
|
// CSRF check |
| 260 |
|
$token = SecurityToken::inst(); |
| 261 |
|
if (empty($data[$token->getName()]) || !$token->check($data[$token->getName()])) { |
| 262 |
|
return new HTTPResponse(null, 400); |
| 263 |
|
} |
| 264 |
|
|
| 265 |
|
// Check parent record |
| 266 |
|
/** @var Folder $parentRecord */ |