Permalink
Browse files

Added logic to prevent Jacknife to break out of SSL-connections.

  • Loading branch information...
PerMalmberg committed Dec 21, 2015
1 parent 757dd70 commit 512faec3b716e3e4ae08b293ed48b5ebeae7b1cb
Showing with 17 additions and 2 deletions.
  1. +8 −1 index.php
  2. +9 −1 manage.php
View
@@ -25,7 +25,14 @@
ini_set("zlib.output_compression", "On");
ini_set("zlib.output_compression", 4096);
define("SELF_URL", "http://" . $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."?");
if( isset( $_SERVER['HTTPS'] ) ) {
define("URL_SCHEME", "https" );
}
else {
define("URL_SCHEME", "http" );
}
define("SELF_URL", URL_SCHEME."://" . $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."?");
define("AUDIT_PHP", true);
$cookielogin = false;
View
@@ -24,7 +24,15 @@
// ****************************************************************************
// acount management
define("MANAGE_PHP", true);
define("SELF_URL", "http://" . $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."?");
if( isset( $_SERVER['HTTPS'] ) ) {
define("URL_SCHEME", "https" );
}
else {
define("URL_SCHEME", "http" );
}
define("SELF_URL", URL_SCHEME."://" . $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."?");
require_once("eve.php");
require_once("audit.funcs.php");

0 comments on commit 512faec

Please sign in to comment.