WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#10281 closed defect (bug) (wontfix)

RSS Widget removes squared brackets »[« »]« from urls that link to the post

Reported by: Christoph Knoth Owned by: azaozz
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Widgets Keywords:
Focuses: Cc:

Description


Change History (3)

comment:1 azaozz4 years ago

  • Keywords rss widget squared brackets removed
  • Milestone changed from 2.9 to Future Release

clean_url() removes the brackets but a patch for that would need a lot of testing.

comment:2 solarissmoke3 years ago

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

From RFC 3986:

A host identified by an Internet Protocol literal address, version 6
[RFC3513] or later, is distinguished by enclosing the IP literal
within square brackets ("[" and "]"). This is the only place where
square bracket characters are allowed in the URI syntax.

In other words, you shouldn't be having square brackets in a URL. And if you do, they should be urlencoded. I just tested an supplying the RSS Widget with urlencoded brackets works fine.

Feel free to reopen if I've missed something.

Last edited 3 years ago by solarissmoke (previous) (diff)

comment:3 nacin3 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.