remove url filtering for backup
This commit is contained in:
parent
ffa06fa67e
commit
99b211e4d9
22
bot.go
22
bot.go
@ -440,17 +440,19 @@ func botBackupImport(m *tb.Message) {
|
|||||||
TGCmdQueue <- c
|
TGCmdQueue <- c
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
r := regexp.MustCompile(`^((http[s]?\:)\/\/)?([^\?\:\/#]+)(\:([0-9]+))?(\/[^\?\#]*)?(\?([^#]*))?(#.*)?.zip$`)
|
/*
|
||||||
if !r.MatchString(m.Payload) {
|
r := regexp.MustCompile(`^((http[s]?\:)\/\/)?([^\?\:\/#]+)(\:([0-9]+))?(\/[^\?\#]*)?(\?([^#]*))?(#.*)?.zip$`)
|
||||||
c := TGCommand{
|
if !r.MatchString(m.Payload) {
|
||||||
Type: commandReplyMsg,
|
c := TGCommand{
|
||||||
Text: "URL not valid.",
|
Type: commandReplyMsg,
|
||||||
FromMsgID64: int64(m.ID),
|
Text: "URL not valid.",
|
||||||
FromChatID64: m.Chat.ID,
|
FromMsgID64: int64(m.ID),
|
||||||
|
FromChatID64: m.Chat.ID,
|
||||||
|
}
|
||||||
|
TGCmdQueue <- c
|
||||||
|
return
|
||||||
}
|
}
|
||||||
TGCmdQueue <- c
|
*/
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
p := JobPayloadBackupImport{
|
p := JobPayloadBackupImport{
|
||||||
URL: m.Payload,
|
URL: m.Payload,
|
||||||
|
Loading…
Reference in New Issue
Block a user