CC-5733: RESTful API data sanitization and validation
small fix - was setting the hidden flag twice
This commit is contained in:
parent
3b2e4ffa64
commit
3c5b7b5853
|
@ -126,7 +126,6 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
if (!$this->validateRequestData($file, $whiteList)) {
|
||||
$file->setDbTrackTitle($_FILES["file"]["name"]);
|
||||
$file->setDbUtime(new DateTime("now", new DateTimeZone("UTC")));
|
||||
$file->setDbHidden(true);
|
||||
$file->save();
|
||||
return;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue