]> ruin.nu Git - ndwebbie.git/commitdiff
Only redirect to https when we're in production
authorMichael Andreen <harv@ruin.nu>
Sat, 6 Sep 2008 12:48:05 +0000 (14:48 +0200)
committerMichael Andreen <harv@ruin.nu>
Sat, 6 Sep 2008 12:48:05 +0000 (14:48 +0200)
lib/NDWeb/Controller/Root.pm

index 7d5bf1ca2a32e5f422b51ce69824afe4fa572b6d..682448cee4365eb59f578c067dc7bfe665f81afd 100644 (file)
@@ -61,7 +61,7 @@ sub login : Local {
                        ,$country,$c->sessionid,$remember);
 
                my $ref = $c->req->referer;
-               $ref =~ s/^http:/https:/;
+               $ref =~ s/^http:/https:/ unless $c->debug;
                $c->res->redirect($ref);
                return;
        }