]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb/Controller/Root.pm
Only redirect to https when we're in production
[ndwebbie.git] / 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;
        }