Require SSL for the RCC.
Resolves T116
This commit is contained in:
parent
655b982f9d
commit
42f1992c97
2 changed files with 23 additions and 6 deletions
11
rcc/ssl.php
Normal file
11
rcc/ssl.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
// Marcel Kapfer (mmk2410) / Wilson O'Sullivan
|
||||
// License: MIT License
|
||||
// SSL Verification
|
||||
|
||||
if ($settings["rcc"]["debug"] != "on") {
|
||||
if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != "on") {
|
||||
header('HTTP/1.1 400 Bad Request');
|
||||
exit();
|
||||
}
|
||||
}
|
Reference in a new issue