File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
require_once __DIR__ . '/../../../../app/bootstrap.php ' ;
8
8
9
- if (isset ($ _POST ['token ' ]) && isset ($ _POST ['command ' ])) {
9
+ if (! empty ($ _POST ['token ' ]) && ! empty ($ _POST ['command ' ])) {
10
10
$ magentoObjectManagerFactory = \Magento \Framework \App \Bootstrap::createObjectManagerFactory (BP , $ _SERVER );
11
11
$ magentoObjectManager = $ magentoObjectManagerFactory ->create ($ _SERVER );
12
12
$ tokenModel = $ magentoObjectManager ->get (\Magento \Integration \Model \Oauth \Token::class);
13
13
14
14
$ tokenPassedIn = urldecode ($ _POST ['token ' ]);
15
15
$ command = urldecode ($ _POST ['command ' ]);
16
16
17
- if (array_key_exists ( " arguments " , $ _POST )) {
18
- $ arguments = escapeshellarg ( urldecode ($ _POST ['arguments ' ]) );
17
+ if (! empty ( $ _POST [ ' arguments ' ] )) {
18
+ $ arguments = urldecode ($ _POST ['arguments ' ]);
19
19
} else {
20
20
$ arguments = null ;
21
21
}
You can’t perform that action at this time.
0 commit comments