From b646e8f992da057ac8d0ce21ba70da02bfb36b99 Mon Sep 17 00:00:00 2001 From: joey <> Date: Sat, 4 Dec 2004 17:48:07 +0000 Subject: [PATCH] Ignore the vacation request when the user hasn't logged in --- search.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/search.cgi b/search.cgi index ffbc654..3151399 100755 --- a/search.cgi +++ b/search.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -# $Id: search.cgi,v 1.11 2004/11/18 19:17:00 joey Exp $ +# $Id: search.cgi,v 1.12 2004/12/04 18:48:07 joey Exp $ # (c) 1999 Randolph Chung. Licensed under the GPL. # (c) 2004 Martin Schulze. Licensed under the GPL. @@ -72,8 +72,8 @@ if (!$dosearch) { } } - # Vacation is a special case - $filter .= "(onvacation=*)" if ($query->param('vacation')); + # Vacation is a special case, support it only when user is authenticated + $filter .= "(onvacation=*)" if ($query->param('vacation') && $authtoken && $id); # AND all the search terms together $filter = "(&$filter)"; -- 2.20.1