aboutsummaryrefslogtreecommitdiff
path: root/pmwiki.php
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-08-21 06:30:13 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-08-21 06:30:13 +0000
commit016ccca923dc19207a4e4bae707c97e90c4caeb9 (patch)
tree8244decf51d07238f28d9859da62ce5af11bf7a1 /pmwiki.php
parentd7cdc92df3b7847659d944e51b38b23864e9ec90 (diff)
downloadpmwiki.svn-016ccca923dc19207a4e4bae707c97e90c4caeb9.tar.bz2
Meta Content-type moved early and configurable.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4794 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'pmwiki.php')
-rw-r--r--pmwiki.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/pmwiki.php b/pmwiki.php
index afd69474..82706058 100644
--- a/pmwiki.php
+++ b/pmwiki.php
@@ -177,6 +177,7 @@ $PageTextVarPatterns = array(
$WikiTitle = 'PmWiki';
$Charset = 'ISO-8859-1';
+$HTMLHeaderFmt['Content-type'] = '';
$HTTPHeaders = array(
"Expires: Tue, 01 Jan 2002 00:00:00 GMT",
"Cache-Control: no-store, no-cache, must-revalidate",
@@ -1910,14 +1911,14 @@ function ProcessPrintFmt($pagename,$x) {
function PostPrintFmt($pagename,$fmt) {
global $EnablePrePrintFmt, $KeepToken, $HTTPHeaders, $FmtV;
if (is_array($fmt)) {
- foreach($fmt as $f) PostPrintFmt($pagename,$f);
+ foreach($fmt as $f) PostPrintFmt($pagename,$f);
return;
}
if ($fmt == 'headers:') {
foreach($HTTPHeaders as $h) (@$sent++) ? @header($h) : header($h);
return;
}
- $fmt = strval($fmt);
+ if (!is_string($fmt)) $fmt = strval($fmt);
$preprint = IsEnabled($EnablePrePrintFmt, 1);
if ($preprint && substr($fmt, 0, 4) == "$KeepToken$KeepToken") {