diff options
author | r <r@freesoftwareextremist.com> | 2024-06-17 15:16:36 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2024-06-17 15:16:36 +0000 |
commit | a442fc2b94e33346aadb74294587282710786f75 (patch) | |
tree | 50f3b4bc24ce86a009a38d583ba54c1384847091 /service | |
parent | efb0e0417c4b290bfa36113b8662f52837bb713e (diff) | |
download | bloat-a442fc2b94e33346aadb74294587282710786f75.tar.gz bloat-a442fc2b94e33346aadb74294587282710786f75.zip |
Fix URL encoding of user inputs
Diffstat (limited to 'service')
-rw-r--r-- | service/service.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/service/service.go b/service/service.go index 4f17817..d88273f 100644 --- a/service/service.go +++ b/service/service.go @@ -160,7 +160,7 @@ func (s *service) TimelinePage(c *client, tType, q, listId, maxID, if err != nil { return err } - refreshLink += "?q=" + q + refreshLink += "?q=" + url.QueryEscape(q) } title = "Remote Timeline" case "twkn": @@ -187,7 +187,7 @@ func (s *service) TimelinePage(c *client, tType, q, listId, maxID, if err != nil { return err } - refreshLink += "?q=" + q + refreshLink += "?q=" + url.QueryEscape(q) } title = "Hashtag Timeline" } @@ -689,7 +689,7 @@ func (s *service) UserSearchPage(c *client, if len(results.Statuses) == 20 { offset += 20 nextLink = fmt.Sprintf("/usersearch/%s?q=%s&offset=%d", id, - q, offset) + url.QueryEscape(q), offset) } if len(q) > 0 { @@ -765,7 +765,7 @@ func (s *service) SearchPage(c *client, q string, qType string, offset int) ( (qType == "statuses" && len(results.Statuses) == 20) { offset += 20 nextLink = fmt.Sprintf("/search?q=%s&type=%s&offset=%d", - q, qType, offset) + url.QueryEscape(q), qType, offset) } if len(q) > 0 { |