From 6af789774a4ab10be38ec541eed0440bb6a2bcf4 Mon Sep 17 00:00:00 2001 From: josch Date: Fri, 28 Dec 2007 16:51:39 +0000 Subject: [PATCH] fixed cookie bug git-svn-id: http://yolanda.mister-muffin.de/svn@224 7eef14d0-6ed0-489d-bf55-20463b2d70db --- trunk/functions.pl | 4 ++++ trunk/search.pl | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) 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 {