From: myk%mozilla.org <> Date: Fri, 20 Sep 2002 03:17:21 +0000 (+0000) Subject: Last part of fix for bug 146945: Hack to support format=rdf for legacy applications... X-Git-Tag: bugzilla-2.17.1~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f9bd287a04393c37982ee4c2a376a23d3268350;p=thirdparty%2Fbugzilla.git Last part of fix for bug 146945: Hack to support format=rdf for legacy applications that don't know to do ctype=rdf instead. r=gerv --- diff --git a/buglist.cgi b/buglist.cgi index eeede9944b..6597fbe3ea 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -86,6 +86,12 @@ else { quietly_check_login(); } +# Hack to support legacy applications that think the RDF ctype is at format=rdf. +if ($::FORM{'format'} eq "rdf" && !$::FORM{'ctype'}) { + $::FORM{'ctype'} = "rdf"; + delete($::FORM{'format'}); +} + # Determine the format in which the user would like to receive the output. # Uses the default format if the user did not specify an output format; # otherwise validates the user's choice against the list of available formats.