Permalink
Browse files

Fix PHP warning

  • Loading branch information...
1 parent 6b5292f commit fa1e7a4fbffc84c6be9fbdf681c6b19e4c83e852 @fmarier fmarier committed Aug 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 php/browserid.php
View
@@ -44,7 +44,7 @@ function login() {
}
function verify_assertion($assertion) {
- $audience = ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'];
+ $audience = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'];
$postdata = 'assertion=' . urlencode($assertion) . '&audience=' . urlencode($audience);
$ch = curl_init();

0 comments on commit fa1e7a4

Please sign in to comment.