Skip to content
Snippets Groups Projects
Verified Commit a7436d1c authored by cyrinux's avatar cyrinux :construction_worker_tone1:
Browse files

fix: Google Reader API: Fix incorrect ParseInt

parent 7d2ae9e1
No related branches found
No related tags found
No related merge requests found
Pipeline #34536 passed
...@@ -372,7 +372,7 @@ func getItemIDs(r *http.Request) ([]int64, error) { ...@@ -372,7 +372,7 @@ func getItemIDs(r *http.Request) ([]int64, error) {
var itemID int64 var itemID int64
_, err := fmt.Sscanf(item, EntryIDLong, &itemID) _, err := fmt.Sscanf(item, EntryIDLong, &itemID)
if err != nil { if err != nil {
itemID, err = strconv.ParseInt(item, 16, 64) itemID, err = strconv.ParseInt(item, 10, 64)
if err != nil { if err != nil {
return nil, fmt.Errorf("googlereader: could not parse item: %v", item) return nil, fmt.Errorf("googlereader: could not parse item: %v", item)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment