From be8bec6a7dbda492f87eec0faf4820173ec78fc3 Mon Sep 17 00:00:00 2001 From: mercury Date: Sun, 4 Aug 2024 11:51:01 +0400 Subject: [PATCH] fix ocserv pass --- app/bot.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/bot.php b/app/bot.php index bf5db8e..b244251 100644 --- a/app/bot.php +++ b/app/bot.php @@ -3595,12 +3595,13 @@ DNS-over-HTTPS with IP: preg_match('~^camouflage_secret[^\n]+?"([^"]+)*"~sm', $ocserv, $m); $cs = $m[1]; preg_match('~^dns = ([^\n]+)~sm', $ocserv, $m); - $dns = $m[1]; + $dns = $m[1]; + $pass = htmlspecialchars($pac['ocserv']); $text[] = "Menu -> OpenConnect"; if (!empty($m[1])) { $text[] = "https://oc.{$pac['domain']}/?$cs"; } - $text[] = "password: {$pac['ocserv']}"; + $text[] = "password: $pass"; $data[] = [ [ 'text' => $this->i18n('change secret'),