Skip to content

Commit 10ad99e

Browse files
committed
exec is disabled when it's *in* $disabledFunctions, ehh...
1 parent 43cc5a0 commit 10ad99e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function checkCoolwsdSetup()
141141
return 'appimage_not_executable';
142142

143143
$disabledFunctions = explode(',', ini_get('disable_functions'));
144-
if (!in_array('exec', $disabledFunctions) || @exec('echo EXEC') !== "EXEC")
144+
if (in_array('exec', $disabledFunctions) || @exec('echo EXEC') !== "EXEC")
145145
return 'exec_disabled';
146146

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

0 commit comments

Comments
 (0)