mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-08 10:34:34 +00:00
Use of secured scheme for external apis in case of https
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user