remove url filtering for backup

This commit is contained in:
shoopea 2019-10-20 13:05:46 +08:00
parent ffa06fa67e
commit 99b211e4d9

2
bot.go
View File

@ -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,