Opened 7 years ago
Closed 6 years ago
#2726 closed defect (bug) (fixed)
irc://irc.server.org cannot be written into a post / link
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | Administration | Version: | 2.1 |
| Severity: | minor | Keywords: | has-patch 2nd-opinion |
| Cc: |
Description
Put <a href="irc://irc.server.org">IRC</a> into a post and it does not get rendered.
Put irc://irc.server.org as the external link using the toolbar and it prefixes with http://
IRC can't be linked from a blog
Attachments (3)
Change History (7)
- Keywords has-patch 2nd-opinion added
- Milestone set to 2.1
- Owner changed from anonymous to skeltoac
- Severity changed from normal to minor
- Status changed from new to assigned
Not being able to use irc: links within posts is only part of the problem. It is also impossible to add irc: links to the sidebar using the Site Admin interface (link manager) -- they will always be prefixed by http:// . For sidebar links, it is impossible to work around this problem, since there is no graphical editor you could turn off to avoid filtering.
I'll attach a patch to wp-admin/admin-functions.php that fixes this other half of the problem.
comment:3
markjaquith — 7 years ago
There are some other protocols present in one place, but not in another. My patch syncs the lists (and reorders them so that they'll be easier to modify jointly in the future).
Any other places where some of the less common protocols are getting stripped out?

It is not correct to conclude that "IRC can't be linked from a blog." You just have to be an admin so that your HMTL isn't filtered by KSES.
A patch is attached. Is there any reason an admin would not want this as an allowed protocol?