This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixes #19: IIS Support

  • Loading branch information...
SyntaxC4 committed Dec 9, 2012
1 parent 70e31cd commit 403058115388f2a20acde74500c2d341ff443bdd
Showing with 1 addition and 1 deletion.
  1. +1 −1 php/persona.php
View
@@ -83,7 +83,7 @@ function print_footer($email = 'null') {
* @return object
*/
function verify_assertion($assertion) {
- $audience = (empty($_SERVER['HTTPS']) ? 'http://' : 'https://') . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'];
+ $audience = ($_SERVER['HTTPS'] === 'on' ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'];
$postdata = 'assertion=' . urlencode($assertion) . '&audience=' . urlencode($audience);
$ch = curl_init();

0 comments on commit 4030581

Please sign in to comment.