Compare commits

..

1 commit

Author SHA1 Message Date
Peter Liu
9fbbc0d4be
Merge 7d1f28a6c9 into 59b695ba83 2026-03-01 15:50:41 +01:00
3 changed files with 3 additions and 4 deletions

View file

@ -144,7 +144,7 @@
return this.app.subUrl;
},
happUrl() {
return `happ://add/${this.app.subUrl}`;
return `happ://add/${encodeURIComponent(this.app.subUrl)}`;
}
},
methods: {

View file

@ -206,7 +206,7 @@
<a-menu-item key="android-npvtunnel" @click="copy(app.subUrl)">NPV
Tunnel</a-menu-item>
<a-menu-item key="android-happ"
@click="open('happ://add/' + app.subUrl)">Happ</a-menu-item>
@click="open('happ://add/' + encodeURIComponent(app.subUrl))">Happ</a-menu-item>
</a-menu>
</a-dropdown>
</a-col>

View file

@ -8,7 +8,6 @@ import (
"encoding/json"
"errors"
"fmt"
"html"
"io"
"math/big"
"net"
@ -652,7 +651,7 @@ func (t *Tgbot) answerCommand(message *telego.Message, chatId int64, isAdmin boo
msg += t.I18nBot("tgbot.commands.help")
msg += t.I18nBot("tgbot.commands.pleaseChoose")
case "start":
msg += t.I18nBot("tgbot.commands.start", "Firstname=="+html.EscapeString(message.From.FirstName))
msg += t.I18nBot("tgbot.commands.start", "Firstname=="+message.From.FirstName)
if isAdmin {
msg += t.I18nBot("tgbot.commands.welcome", "Hostname=="+hostname)
}