From 274262c768a9ee89e5f534452381c04a02fd55ba Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" Date: Thu, 19 Sep 2002 20:17:21 +0000 Subject: [PATCH] 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 --- webtools/bugzilla/buglist.cgi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webtools/bugzilla/buglist.cgi b/webtools/bugzilla/buglist.cgi index eeede9944b8d..6597fbe3ea08 100755 --- a/webtools/bugzilla/buglist.cgi +++ b/webtools/bugzilla/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.