Skip to content

Commit 2415b89

Browse files
authored
fix infinite loop when parsing empty nonnative subscription content (#3208)
1 parent cab66de commit 2415b89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/subscription/entries/nonnative/nonnative.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ func (a *AbstractNonNativeLink) fromBytes(bytes []byte) {
3030
}
3131

3232
func (a *AbstractNonNativeLink) extractValue(content, prefix string) {
33+
if content == "" {
34+
return
35+
}
36+
3337
{
3438
// check if the content is a link
3539
match, err := regexp.Match("[a-zA-Z0-9]+:((\\/\\/)|\\?)", []byte(content))

0 commit comments

Comments
 (0)