WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#11153 closed defect (bug) (fixed)

Search query should be urlencoded in get_search_feed_link() and get_search_comments_feed_link()

Reported by: tenpura Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.9
Component: General Keywords: has-patch
Focuses: Cc:

Description

get_search_feed_link() and get_search_comments_feed_link() do not urlencod the search query properly.

They return URLs like

http://example.com/?s=あ い&feed=rss2

which should be like

http://example.com/?s=%E3%81%82+%E3%81%84&feed=rss2

Attachments (1)

11153.diff (966 bytes) - added by tenpura 4 years ago.
urlencode search query

Download all attachments as: .zip

Change History (2)

tenpura4 years ago

urlencode search query

comment:1 azaozz4 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12395]) Urlencode the search query in get_search_feed_link() and get_search_comments_feed_link(), props tenpura, fixes #11153

Note: See TracTickets for help on using tickets.