Fix onvif source: invalid control character in URL #662

This commit is contained in:
Alex X
2023-10-11 13:43:45 +03:00
parent 3ae15d8f80
commit 2e9f3181d4
3 changed files with 205 additions and 5 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import (
)
func FindTagValue(b []byte, tag string) string {
re := regexp.MustCompile(`(?s)<[^/>]*` + tag + `[^>]*>([^<]+)`)
re := regexp.MustCompile(`(?s)[:<]` + tag + `>([^<]+)`)
m := re.FindSubmatch(b)
if len(m) != 2 {
return ""