fix: cast shell_exec output to string to prevent null pointer exceptions during split

This commit is contained in:
infosave2007
2026-04-23 16:17:32 +03:00
parent 8fd8dd092c
commit ebcf09df08
+1 -1
View File
@@ -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) {