-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Open
Labels
Description
Description
func (s *linkifyParser) Parse(....) ast.Node {
....
if m != nil {
lastChar := line[m[1]-1]
if lastChar == '.' {
m[1]--
} else if lastChar == ')' {
....
} else if lastChar == ';' {
i := m[1] - 2
for ; i >= m[0]; i-- {
if util.IsAlphaNumeric(line[i]) {
continue
}
break
}
if i != m[1]-2 {
if line[i] == '&' {
m[1] -= m[1] – i // <=
}
}
}
}
....
}
Obviously, subtracting its own value from m[1] makes no sense.
A strange piece of code was found inside the linkify.go file on line 108.
Gitea Version
...
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
...
Database
None
Reactions are currently unavailable