Use of secured scheme for external apis in case of https

This commit is contained in:
Romain Neutron
2012-01-06 14:42:41 +01:00
parent e7bab79c85
commit d933c64b2f
9 changed files with 21 additions and 13 deletions

View File

@@ -93,6 +93,13 @@ class http_request
return true;
return false;
}
public function is_secure()
{
return (
isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on' || $_SERVER['HTTPS'] == 1)
);
}
public function comes_from_flash()
{