Quote:
Originally Posted by xeagle
Please use the http://vbsso.com/request-new-feature/ form to submit the full description of the flow how we would be able to reproduce your issue step by step. We will contact you and try to look through.
|
Submitted. Upon my own investigation, I found this:
Code:
function sharedapi_get_server_url($uri = true) {
$url = 'http://' . $_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] != '80' ? ':' . $_SERVER['SERVER_PORT']
: '');
Looks like it may be the culprit, or part of it at least.
edit: fixed it. replace the code above with the code below in includes/sharedapi.php in both vb4 and WP vbsso plugin directories:
Code:
function sharedapi_get_server_url($uri = true) {
if ($_SERVER['SERVER_PORT'] == '80') {
$url = 'http://' . $_SERVER['SERVER_NAME'] . '';
} else if ($_SERVER['SERVER_PORT'] == '443') {
$url = 'https://' . $_SERVER['SERVER_NAME'] . '';
} else {
$url = 'http://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . '';
}
I'm sure it could be made cleaner with the $_SERVER['HTTPS'] variable (on/off). Maybe I'll mess with that later.