Skip to content

Commit

Permalink
exec is disabled when it's *in* $disabledFunctions, ehh...
Browse files Browse the repository at this point in the history
  • Loading branch information
timar committed Oct 22, 2022
1 parent 43cc5a0 commit 10ad99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function checkCoolwsdSetup()
return 'appimage_not_executable';

$disabledFunctions = explode(',', ini_get('disable_functions'));
if (!in_array('exec', $disabledFunctions) || @exec('echo EXEC') !== "EXEC")
if (in_array('exec', $disabledFunctions) || @exec('echo EXEC') !== "EXEC")
return 'exec_disabled';

exec("LD_TRACE_LOADED_OBJECTS=1 $appImage", $output, $return);
Expand Down

0 comments on commit 10ad99e

Please sign in to comment.