Skip to content

Commit 5018f86

Browse files
committed
MAGETWO-70971: Remote code execution via downloadable products
1 parent d988a23 commit 5018f86

File tree

1 file changed

+1
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Downloadable/Controller/Adminhtml/Downloadable

1 file changed

+1
-0
lines changed

dev/tests/integration/testsuite/Magento/Downloadable/Controller/Adminhtml/Downloadable/FileTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public function testUploadProhibitedExtensions($fileName)
6868
$body = $this->getResponse()->getBody();
6969
$result = Bootstrap::getObjectManager()->get(Json::class)->unserialize($body);
7070

71+
self::assertArrayHasKey('errorcode', $result);
7172
self::assertEquals(0, $result['errorcode']);
7273
self::assertEquals('Disallowed file type.', $result['error']);
7374
}

0 commit comments

Comments
 (0)