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
This commit is contained in:
myk%mozilla.org 2002-09-19 20:17:21 +00:00
Родитель 8f043864e0
Коммит 274262c768
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -86,6 +86,12 @@ else {
quietly_check_login(); 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. # 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; # 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. # otherwise validates the user's choice against the list of available formats.