[wp-trac] [WordPress Trac] #28658: is_ssl() may fail on ssl, relying on mod_ssl.
WordPress Trac
noreply at wordpress.org
Sat Jun 28 12:50:53 UTC 2014
#28658: is_ssl() may fail on ssl, relying on mod_ssl.
-------------------------------------------+------------------------------
Reporter: mampf | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.9.1
Severity: normal | Resolution:
Keywords: reporter-feedback 2nd-opinion | Focuses:
-------------------------------------------+------------------------------
Comment (by mampf):
Hello John,
I think it just can't. This "proxy" is transparent to apache, like
apache/nginx is transparent to tomcat. I don't know how the port is set
correctly in apache. Honestly I don't know why pound is not able to change
$_SERVER['HTTP'].
A long-term solution would be to mark this function as deprecated and only
set the server-relative path (//host/path) everywhere, omnitting the
protocol (http: or https:). The downside: You'd need to change every
image-link in the database.
I think there might be legitimate situations where a proxy cannot change
the environment variable. Perhaps a ticket on pound's bug tracker would be
helpful.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28658#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list