Fix SSL-proxy behaviour by using only path+query in links (W. Gould)

This commit is contained in:
Oliver Gorwits
2013-10-06 17:37:28 +01:00
parent a4e2375cdd
commit 4d9f16db3a
6 changed files with 16 additions and 10 deletions

View File

@@ -55,7 +55,7 @@ foreach my $jobtype (keys %jobs_all, keys %jobs) {
if exists $jobs{$jobtype} and not param('device');
add_job($jobtype, param('device'), param('extra'));
redirect uri_for('/admin/jobqueue')->as_string;
redirect uri_for('/admin/jobqueue')->path;
};
}

View File

@@ -159,7 +159,7 @@ get '/device' => require_login sub {
});
if (!defined $dev) {
return redirect uri_for('/', {nosuchdevice => 1})->as_string();
return redirect uri_for('/', {nosuchdevice => 1})->path_query;
}
params->{'tab'} ||= 'details';

View File

@@ -66,7 +66,7 @@ get '/search' => require_login sub {
if (not param('tab')) {
if (not $q) {
return redirect uri_for('/')->as_string;
return redirect uri_for('/')->path;
}
# pick most likely tab for initial results
@@ -83,7 +83,7 @@ get '/search' => require_login sub {
tab => 'details',
q => ($nd->first->dns || $nd->first->ip),
f => '',
})->as_string;
})->path;
}
# multiple devices