From ebcf09df081a96c7c089e7b6626016bbde75388e Mon Sep 17 00:00:00 2001 From: infosave2007 Date: Thu, 23 Apr 2026 16:17:32 +0300 Subject: [PATCH] fix: cast shell_exec output to string to prevent null pointer exceptions during split --- inc/VpnClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/VpnClient.php b/inc/VpnClient.php index 0377de2..c19e750 100644 --- a/inc/VpnClient.php +++ b/inc/VpnClient.php @@ -757,7 +757,7 @@ class VpnClient $escaped ); - $out = shell_exec($sshCmd); + $out = (string) shell_exec($sshCmd); $parts = explode("---", trim($out)); if (count($parts) < 2) {