diff --git a/trunk/functions.pl b/trunk/functions.pl index 22987a2..5ca47bf 100644 --- a/trunk/functions.pl +++ b/trunk/functions.pl @@ -175,6 +175,10 @@ sub output_page { @cookies = [$session->cookie(-name=>$session_name, -value=>$session->id), $session->cookie(-name=>'cortado', -value=>'false')]; } + else + { + @cookies = [$session->cookie(-name=>$session_name, -value=>$session->id)]; + } #send everything including http headers to the user - if xslt chosen is xspf set download filename return $session->header( diff --git a/trunk/search.pl b/trunk/search.pl index 9958c2f..436526d 100644 --- a/trunk/search.pl +++ b/trunk/search.pl @@ -123,8 +123,7 @@ if($query->param('query')) } elsif($query->param('advanced')) { - $page->{'advancedsearch'} = ['']; - print output_page(); + print $query->redirect("index.pl?error=error_202c"); } else {