fix: cast shell_exec output to string to prevent null pointer exceptions during split
This commit is contained in:
1 parent
8fd8dd092c
commit
ebcf09df08
1 file changed
+1
-1
+1
-1
@@ -757,7 +757,7 @@ class VpnClient
|
||||
$escaped
|
||||
);
|
||||
|
||||
$out = shell_exec($sshCmd);
|
||||
$out = (string) shell_exec($sshCmd);
|
||||
$parts = explode("---", trim($out));
|
||||
|
||||
if (count($parts) < 2) {
|
||||
|
||||
Reference in new issue
Block a user