mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
fix infinite loop when parsing empty nonnative subscription content (#3208)
This commit is contained in:
parent
cab66deace
commit
2415b89510
@ -30,6 +30,10 @@ func (a *AbstractNonNativeLink) fromBytes(bytes []byte) {
|
||||
}
|
||||
|
||||
func (a *AbstractNonNativeLink) extractValue(content, prefix string) {
|
||||
if content == "" {
|
||||
return
|
||||
}
|
||||
|
||||
{
|
||||
// check if the content is a link
|
||||
match, err := regexp.Match("[a-zA-Z0-9]+:((\\/\\/)|\\?)", []byte(content))
|
||||
|
Loading…
Reference in New Issue
Block a user