Page MenuHomePhabricator

D11258.id27023.diff
No OneTemporary

D11258.id27023.diff

diff --git a/src/applications/maniphest/controller/ManiphestTaskEditController.php b/src/applications/maniphest/controller/ManiphestTaskEditController.php
--- a/src/applications/maniphest/controller/ManiphestTaskEditController.php
+++ b/src/applications/maniphest/controller/ManiphestTaskEditController.php
@@ -126,11 +126,14 @@
// You can only have a parent task if you're creating a new task.
$parent_id = $request->getInt('parent');
- if ($parent_id) {
+ if (strlen($parent_id)) {
$parent_task = id(new ManiphestTaskQuery())
->setViewer($user)
->withIDs(array($parent_id))
->executeOne();
+ if (!$parent_task) {
+ return new Aphront404Response();
+ }
if (!$template_id) {
$template_id = $parent_id;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 3:04 PM (9 h, 57 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6914374
Default Alt Text
D11258.id27023.diff (825 B)

Event Timeline