Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14366056
D11258.id27023.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
825 B
Referenced Files
None
Subscribers
None
D11258.id27023.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11258: T6555, When creating a task with a non existing parent parameter, phabricator should 404
Attached
Detach File
Event Timeline
Log In to Comment