big-brother.pl: Make sure restricted URL is used

This commit is contained in:
Alex Schroeder
2015-09-21 17:56:02 +02:00
parent 61a2238d9a
commit e77abbc09f

View File

@@ -60,7 +60,6 @@ sub AddRecentVisitor {
my $url = ScriptUrl(join(';', "action=$action;id=" . UrlEncode($id),
map { $_ . '=' . UrlEncode(GetParam($_)) }
keys %params));
my $url = $q->url(-path_info=>1,-query=>1);
my $download = GetParam('action', 'browse') eq 'download'
|| GetParam('download', 0)
|| $q->path_info() =~ m/\/download\//;