diff --git a/gnukebox/index.php b/gnukebox/index.php index 2c4a1d8b1d529a77db7a41aa349d5aa51e9449cb..d12e516af507817a96e635cc6ba900e54e01bf83 100644 --- a/gnukebox/index.php +++ b/gnukebox/index.php @@ -30,10 +30,10 @@ if (!isset($config_version) || $config_version != $version) { die('Configuration file is out of date. Please delete it (and associated database) and reinstall.'); //TODO: Upgrade script for release versions } -if (isset($_GET['hs']) && isset($_GET['p'])) { - if (substr($_GET['p'], 0, 3) == '1.2') { +if (isset($_REQUEST['hs']) && isset($_REQUEST['p'])) { + if (substr($_REQUEST['p'], 0, 3) == '1.2') { require_once('submissions/1.2/handshake.php'); - } else if (substr($_GET['p'], 0, 3) == '1.1') { + } else if (substr($_REQUEST['p'], 0, 3) == '1.1') { require_once('submissions/1.1/handshake.php'); } } else {