From 381f05ec5ca4630f9d7b8ba9543b213144473b5a Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Wed, 1 Dec 2004 04:57:30 +0000 Subject: [PATCH] Revert to behavior of treating no branch parameter as branch=HEAD. Bug #261616 & bug #272511 --- webtools/bonsai/cvsquery.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webtools/bonsai/cvsquery.cgi b/webtools/bonsai/cvsquery.cgi index 27d612bfc61b..7ae21dffbb89 100755 --- a/webtools/bonsai/cvsquery.cgi +++ b/webtools/bonsai/cvsquery.cgi @@ -176,7 +176,9 @@ if ($::FORM{'raw'}) { # # branch # -$::query_branch = &SanitizeRevision($::FORM{'branch'}); +$::query_branch = $::FORM{'branch'}; +$::query_branch = 'HEAD' if !defined($::query_branch); +$::query_branch = &SanitizeRevision($::query_branch); $::query_branchtype = &ExpectMatchtype($::FORM{'branchtype'}); if ($::query_branch eq 'HEAD' &&