Răsfoiți Sursa

Google Reader API: Fix incorrect ParseInt

Frédéric Guillot 3 ani în urmă
părinte
comite
071e9106a8
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      googlereader/handler.go

+ 1 - 1
googlereader/handler.go

@@ -357,7 +357,7 @@ func getItemIDs(r *http.Request) ([]int64, error) {
 		var itemID int64
 		_, err := fmt.Sscanf(item, EntryIDLong, &itemID)
 		if err != nil {
-			itemID, err = strconv.ParseInt(item, 16, 64)
+			itemID, err = strconv.ParseInt(item, 10, 64)
 			if err != nil {
 				return nil, fmt.Errorf("could not parse item: %v", item)
 			}