aboutsummaryrefslogtreecommitdiff
path: root/pmwiki.php
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2022-11-28 14:33:09 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2022-11-28 14:33:09 +0000
commit39acf7cd0ffb11609c753c22bf93c2cfd075bc83 (patch)
treed70425a80fe7b6582ee1dfd9880b492b791e82a0 /pmwiki.php
parentf3a881ff41a2476dd9507a91c994b835acafb0b7 (diff)
downloadpmwiki.svn-39acf7cd0ffb11609c753c22bf93c2cfd075bc83.tar.bz2
Revert WikiStyleToClassName(), PrePrintFmt() -- need more work (PITS:01484).
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4282 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'pmwiki.php')
-rw-r--r--pmwiki.php31
1 files changed, 1 insertions, 30 deletions
diff --git a/pmwiki.php b/pmwiki.php
index 8bf9d690..e6fd4402 100644
--- a/pmwiki.php
+++ b/pmwiki.php
@@ -528,12 +528,6 @@ function PQA($x, $keep=true, $styletoclass=false) {
$val = preg_replace('/^([\'"]?)(.*)\\1$/', '$2', $a[2]);
$s[$a[1]] = $val;
}
- if (!IsEnabled($EnableUnsafeInlineStyle)) unset($s['style']);
- if ($styletoclass && @$s['style'] && function_exists('WikiStyleToClassName')
- && @$EnableUnsafeInlineStyle == 2) {
- WikiStyleToClassName($s['style'], $s);
- unset($s['style']);
- }
foreach($s as $key=>$val) {
$val = PHSC($val, ENT_QUOTES, null, false);
if ($keep) $val = Keep($val);
@@ -1682,34 +1676,11 @@ function Redirect($pagename, $urlfmt='$PageUrl', $redirecturl=null) {
exit;
}
-## This function processes any wiki pages and functions to HTML before printing
-## headers and styles, to allow recipes and wikistyles from sidebars and footers
-function PrePrintFmt($pagename,$fmt) {
- global $PageStartFmt;
- ob_start();
- foreach($fmt as $k=>$x) {
- # $PageStartFmt processed after pages, for (:noleft:) etc. to work
- if ($x == $PageStartFmt) continue;
- if (is_array($x)) {
- $fmt[$k] = PrePrintFmt($pagename,$x);
- continue;
- }
- if (preg_match('/^(markup|wiki|page|function):/', $x)) {
- PrintFmt($pagename,$x);
- $fmt[$k] = ob_get_contents();
- ob_clean();
- }
- }
- ob_end_clean();
- return $fmt;
-}
-
function PrintFmt($pagename,$fmt) {
global $HTTPHeaders,$FmtV;
if (is_array($fmt)) {
- $fmt = PrePrintFmt($pagename,$fmt);
foreach($fmt as $f) PrintFmt($pagename,$f);
- return;
+ return;
}
if ($fmt == 'headers:') {
foreach($HTTPHeaders as $h) (@$sent++) ? @header($h) : header($h);