mirror of
https://github.com/profullstack/agentbbs.git
synced 2026-08-13 22:37:28 +00:00
Merge pull request #22 from phucnguyen1707/fix-over-single-article
Fix single article NNTP overview ranges
This commit is contained in:
parent
336ff00fa3
commit
0944fa2cb4
2 changed files with 12 additions and 1 deletions
|
|
@ -170,8 +170,9 @@ func parseRange(spec string) (low, high int64) {
|
|||
h, err := strconv.ParseInt(parts[0], 10, 64)
|
||||
if err != nil {
|
||||
h = math.MaxInt64
|
||||
return 0, h
|
||||
}
|
||||
return 0, h
|
||||
return h, h
|
||||
}
|
||||
l, _ := strconv.ParseInt(parts[0], 10, 64)
|
||||
h, err := strconv.ParseInt(parts[1], 10, 64)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue