Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current URL Detection: Use port 443 if protocol is https and no port is detected #50

Merged
merged 1 commit into from
Jul 28, 2015
Merged

Conversation

digilist
Copy link
Contributor

@digilist digilist commented Apr 2, 2015

My webserver configuration doesn't publish the SERVER_PORT (only god knows why...). So if the protocol is https, do not use the default port 80, but instead use 443.

@@ -546,6 +546,8 @@ protected function current_url() {
$port = $_SERVER['HTTP_X_FORWARDED_PORT'];
} else if (!empty($_SERVER['SERVER_PORT'])) {
$port = $_SERVER['SERVER_PORT'];
} else if ($proto == 'https') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think we should use === here. I'll make this change after merging.

brianr added a commit that referenced this pull request Jul 28, 2015
Current URL Detection: Use port 443 if protocol is https and no port is detected
@brianr brianr merged commit 46805a8 into rollbar:master Jul 28, 2015
@brianr
Copy link
Member

brianr commented Jul 28, 2015

Merged, thanks! We'll get a new release out shortly.

@brianr
Copy link
Member

brianr commented Jul 29, 2015

Released in version 0.15.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants