Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
Merge pull request #8 from PerMalmberg/master
Browse files Browse the repository at this point in the history
Added logic to prevent Jacknife breaking out of SSL-connections.
  • Loading branch information
whinis committed Dec 21, 2015
2 parents c2ff4d5 + 512faec commit 213db9b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
9 changes: 8 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 9 additions & 1 deletion manage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

2 comments on commit 213db9b

@PerMalmberg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for accepting the pull request :)

@whinis
Copy link
Owner Author

@whinis whinis commented on 213db9b Dec 21, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see how this is useful and doesn't do anything harmful. No reason not to accept it.

Please sign in to comment.