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'),