[wp-trac] [WordPress Trac] #19654: Allow overload of is_ssl() via a filter

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 23 16:44:07 UTC 2011


#19654: Allow overload of is_ssl() via a filter
-------------------------+-----------------------------
 Reporter:  superkus     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Plugins      |    Version:  3.3
 Severity:  minor        |   Keywords:
-------------------------+-----------------------------
 Hi !

 Would it be possible to add the is_ssl() function to the list of functions
 that can be overloaded via a plug-in?

 The reason for this is that in some cases where SSL Offloading is used
 (SSL managed by an external device to the web server, say an F5 or
 STunnel), the {{{$_SERVER['HTTPS']}}} will be false because the web server
 is only listening on plain HTTP.

 If we could overload this function via a plug-in, we could check other
 common HTTP Headers used by some devices when doing SSL Offloading,
 HTTP_X_FORWARDED_PROTO, HTTP_FRONT_END_HTTPS or even a custom one the
 sysadmin chooses to inject to the request to let the web server know if
 the connection is secure or not.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19654>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list