X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FForm.pm;h=15d66cec9b785564916aa7304ecc661f51a55f88;hb=388a2ff5471adc27084f77e60fe154f25790dc9e;hp=624c01fc8f3ebbb524ab838f84c152157f6e888e;hpb=072d299d85184192341ba0a520209ffe31b6bb66;p=kivitendo-erp.git diff --git a/SL/Form.pm b/SL/Form.pm index 624c01fc8..15d66cec9 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -722,10 +722,15 @@ sub header { |; } + my %doctypes = ( + strict => qq||, + transitional => qq||, + frameset => qq||, + ); + # output print $self->create_http_response(content_type => 'text/html', charset => $db_charset); - print "\n" - if $ENV{'HTTP_USER_AGENT'} =~ m/MSIE\s+\d/; # Other browsers may choke on menu scripts with DOCTYPE. + print $doctypes{$params{doctype} || 'transitional'}, $/; print < @@ -734,9 +739,9 @@ sub header { EOT print " $_\n" for @header; print < - - + + +