[wp-trac] [WordPress Trac] #35376: Default URL for emoji images should be always https

WordPress Trac noreply at wordpress.org
Sat Jan 9 00:09:53 UTC 2016


#35376: Default URL for emoji images should be always https
--------------------------+--------------------------
 Reporter:  ocean90       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.5
Component:  Emoji         |     Version:  4.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+--------------------------
Description changed by ocean90:

Old description:

> The default URL is currently `set_url_scheme(
> '//s.w.org/images/core/emoji/72x72/' )` but the CDN is SSL-only, so in
> case `set_url_scheme()` returns "http" the request gets redirected to
> "https". That's pretty bad for our little friends.
>
> {{{
> curl -I http://s.w.org/images/core/emoji/72x72/1f680.png
> HTTP/1.1 301 Moved Permanently
> Content-Type: text/html
> Date: Fri, 08 Jan 2016 19:53:08 GMT
> Location: https://s.w.org/images/core/emoji/72x72/1f680.png
> Server: nginx
> Content-Length: 178
> }}}
>
> It's seems like this was an oversight in [31938] because s0.wp.com has no
> such redirect.

New description:

 The default URL is currently `set_url_scheme(
 '//s.w.org/images/core/emoji/72x72/' )` but the CDN is SSL-only, so in
 case `set_url_scheme()` returns "http" the request gets redirected to
 "https". That's pretty bad for our little friends.

 {{{
 curl -I http://s.w.org/images/core/emoji/72x72/1f680.png
 HTTP/1.1 301 Moved Permanently
 Content-Type: text/html
 Date: Fri, 08 Jan 2016 19:53:08 GMT
 Location: https://s.w.org/images/core/emoji/72x72/1f680.png
 Server: nginx
 Content-Length: 178
 }}}

 It's seems like this was an oversight in [31938] because s0.wp.com has no
 such redirect.

 h/t: @glueckpress – http://glueckpress.com/7295/schnellere-emoji-
 wordpress-plugin/

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35376#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list