From 63b0cf5fd4a637b0dba3b823c0c028d5087134fb Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 12 Sep 2013 13:26:04 -0500 Subject: don't force https anymore --- lib/constants.pm | 2 +- lib/forms.pm | 2 +- lib/invite.pm | 4 ++-- lib/session.pm | 6 ++++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/constants.pm b/lib/constants.pm index 129a9fa..36f12b9 100644 --- a/lib/constants.pm +++ b/lib/constants.pm @@ -7,7 +7,7 @@ our $BUCKY_CONFIG = 'PRIVACY_KEYWORD' => undef, 'PRIVACY_OWNER' => 'private', 'BASE_PATH' => '/var/www/vhosts/carbonpictures.com/bucky/', - 'BPOD_SERVICES_WAREZ_DIR' => 'https://www.carbonpictures.com/bucky/data/', + 'BPOD_SERVICES_WAREZ_DIR' => 'http://www.carbonpictures.com/bucky/data/', 'USERLIST_TITLE' => 'the carbon consortium', 'BUCKY_NAME' => 'bucky', 'UNSORTED_POSITION' => 'top', diff --git a/lib/forms.pm b/lib/forms.pm index 5f31368..52c6415 100644 --- a/lib/forms.pm +++ b/lib/forms.pm @@ -817,7 +817,7 @@ FORMEND sub login_form { my $uri = ''; - print qq{
\n}; + print qq{\n}; if ($input->{redir} =~ /\?/) { diff --git a/lib/invite.pm b/lib/invite.pm index 96c6de0..d568342 100644 --- a/lib/invite.pm +++ b/lib/invite.pm @@ -167,7 +167,7 @@ email address:
adduserfoot print <hello there duder, please say hello
+please say hello:
snark @@ -366,7 +366,7 @@ sub display_invite_row print qq(); print qq(); - print qq(https://$BUCKY_HOST$BUCKY/invite/$i->{hash}); + print qq(http://$BUCKY_HOST$BUCKY/invite/$i->{hash}); print qq(); print qq(); diff --git a/lib/session.pm b/lib/session.pm index 2074ee4..072c0dc 100644 --- a/lib/session.pm +++ b/lib/session.pm @@ -119,7 +119,8 @@ sub logout { my $error = shift; my $lender = undef; - my $s = $ENV{'HTTPS'} eq "on" ? "s" : ""; + # my $s = $ENV{'HTTPS'} eq "on" ? "s" : ""; + my $s = ""; setCookie( { name => "name", value => undef, path => "$BUCKY/", domain => $BUCKY_COOKIE_DOMAIN } ); setCookie( { name => "pass", value => undef, path => "$BUCKY/", domain => $BUCKY_COOKIE_DOMAIN } ); @@ -163,7 +164,8 @@ sub nice_redirect sub redirect { my $uri = shift; - my $s = ($ENV{'HTTPS'} eq "on" || exists($input->{secure})) ? "s" : ""; + # my $s = ($ENV{'HTTPS'} eq "on" || exists($input->{secure})) ? "s" : ""; + my $s = ""; print "Location: http$s://$BUCKY_HOST$uri\n\n"; $dbh->disconnect() if (defined($dbh)); exit (0); -- cgit v1.2.3-70-g09d2