Procházet zdrojové kódy

Revert "Google Reader API: Fix incorrect ParseInt"

This reverts commit 071e9106a818ee75ff7ea14b9338421ba12701c6.
Frédéric Guillot před 3 roky
rodič
revize
3eb3ac06b6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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, 10, 64)
+			itemID, err = strconv.ParseInt(item, 16, 64)
 			if err != nil {
 				return nil, fmt.Errorf("could not parse item: %v", item)
 			}