remove url filtering for backup
This commit is contained in:
parent
ffa06fa67e
commit
99b211e4d9
2
bot.go
2
bot.go
@ -440,6 +440,7 @@ func botBackupImport(m *tb.Message) {
|
|||||||
TGCmdQueue <- c
|
TGCmdQueue <- c
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
r := regexp.MustCompile(`^((http[s]?\:)\/\/)?([^\?\:\/#]+)(\:([0-9]+))?(\/[^\?\#]*)?(\?([^#]*))?(#.*)?.zip$`)
|
r := regexp.MustCompile(`^((http[s]?\:)\/\/)?([^\?\:\/#]+)(\:([0-9]+))?(\/[^\?\#]*)?(\?([^#]*))?(#.*)?.zip$`)
|
||||||
if !r.MatchString(m.Payload) {
|
if !r.MatchString(m.Payload) {
|
||||||
c := TGCommand{
|
c := TGCommand{
|
||||||
@ -451,6 +452,7 @@ func botBackupImport(m *tb.Message) {
|
|||||||
TGCmdQueue <- c
|
TGCmdQueue <- c
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
p := JobPayloadBackupImport{
|
p := JobPayloadBackupImport{
|
||||||
URL: m.Payload,
|
URL: m.Payload,
|
||||||
|
Loading…
Reference in New Issue
Block a user