Require SSL for the RCC.

Resolves T116
This commit is contained in:
Marcel Kapfer (mmk2410) 2016-05-17 22:34:33 +02:00
parent 655b982f9d
commit 42f1992c97
2 changed files with 23 additions and 6 deletions

11
rcc/ssl.php Normal file
View 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();
}
}