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

This commit is contained in:
infosave2007 committed 2026-04-23 16:17:32 +03:00
1 parent 8fd8dd092c
commit ebcf09df08
1 file changed
+1 -1
+1 -1
View File
@@ -757,7 +757,7 @@ class VpnClient
$escaped
);
$out = shell_exec($sshCmd);
$out = (string) shell_exec($sshCmd);
$parts = explode("---", trim($out));
if (count($parts) < 2) {