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