mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Escape URL parameters in Sprintf
This commit is contained in:
+1
-3
@@ -1,14 +1,12 @@
|
||||
package handler
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"codeberg.org/vnpower/pixivfe/models"
|
||||
"github.com/goccy/go-json"
|
||||
)
|
||||
|
||||
func (p *PixivClient) GetNewestFromFollowing(mode, page, token string) ([]models.IllustShort, error) {
|
||||
URL := fmt.Sprintf(NewestFromFollowURL, "illust", mode, page)
|
||||
URL := UrlSprintf(NewestFromFollowURL, "illust", mode, page)
|
||||
|
||||
var body struct {
|
||||
Thumbnails json.RawMessage `json:"thumbnails"`
|
||||
|
||||
Reference in New Issue
Block a user