Changeset 2940
- Timestamp:
- 08/19/08 01:13:29 (3 months ago)
- Files:
-
- trunk/lib/MT/App.pm (modified) (2 diffs)
- trunk/lib/MT/WeblogPublisher.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/MT/App.pm
r2895 r2940 2632 2632 } 2633 2633 2634 # Some browsers throw you to quirks mode if the doctype isn't2635 # up front.2636 $body =~ s/^\s+(<!DOCTYPE)/$1/s if defined $body;2637 2638 2634 unless ( defined $body 2639 2635 || $app->{redirect} … … 2727 2723 } 2728 2724 } 2725 2726 # Some browsers throw you to quirks mode if the doctype isn't 2727 # up front and leading whitespace makes a feed invalid. 2728 $body =~ s/\A\s+(<(?:\?xml|!DOCTYPE))/$1/s if defined $body; 2729 2729 2730 $app->print($body); 2730 2731 } trunk/lib/MT/WeblogPublisher.pm
r2737 r2940 1297 1297 ); 1298 1298 } 1299 1300 # Some browsers throw you to quirks mode if the doctype isn't 1301 # up front and leading whitespace makes a feed invalid. 1302 $html =~ s/\A\s+(<(?:\?xml|!DOCTYPE))/$1/s; 1303 1299 1304 my $orig_html = $html; 1300 1305 MT->run_callbacks( … … 1568 1573 } 1569 1574 1575 # Some browsers throw you to quirks mode if the doctype isn't 1576 # up front and leading whitespace makes a feed invalid. 1577 $html =~ s/\A\s+(<(?:\?xml|!DOCTYPE))/$1/s; 1578 1570 1579 my $orig_html = $html; 1571 1580 MT->run_callbacks(
