Hi, i implemented https in my website. It works quite well in every section except for buddypress activity stream when you upload an image with rtmedia.
Using firebug i got images uploaded via rtmedia are loaded using http instead of https, here u got an html output
<a href=”http://www.segrete.org/membri/wolfman/media/148/” rel=”nofollow”>
<div class=”rtmedia-item-thumbnail”><img alt=”10986672_101705826846803_3272729986302057440_n” src=”http://www.segrete.org/wp-content/uploads/rtMedia/users/318/2017/02/10986672_101705826846803_3272729986302057440_n.jpg”></div>
<div class=”rtmedia-item-title”>10986672_101705826846803_3272729986302057440_n</div>
</a><p><a href=”http://www.segrete.org/membri/wolfman/media/148/” rel=”nofollow” class=”no-popup”></a></p>
How can i fix it? It could depends on this part of code? sweetdate/rtmedia/main.php
//todo sanitize and fix $_SERVER variable usage
// check if it is an ajax request
$_rt_ajax_request = rtm_get_server_var( ‘HTTP_X_REQUESTED_WITH’, ‘FILTER_SANITIZE_STRING’ );
if ( ‘xmlhttprequest’ === strtolower( $_rt_ajax_request ) ) {
$rt_ajax_request = true ;
}