Hey,
I have problem with Alternative heading. If it start with number (1, 2 .. 100 etc), then (first) number does not appear (100 --> 00) and heading also don't get css format settings.
Alternative heading
Re: Alternative heading
Indeed, that's a bug. You have to change plugins/page_params/index.php line 68 (in CMSimple_XH 1.5.9):
BTW: now I know what the space was meant for, that was removed in r248
Code: Select all
$c[$pd_s] = preg_replace($temp, '${1}'.(string)$pd_current['heading'].'\\2',$c[$pd_s]);
Christoph M. Becker – Plugins for CMSimple_XH
Re: Alternative heading
I found that there are still potential issues. E.g. using "$1" as alternative heading will not output an heading at all, but rather invalid HTML, while a backslash as last character has even stranger results.
The problem is that $pd_current['heading'] is not properly escaped; the following will take care for that:
The problem is that $pd_current['heading'] is not properly escaped; the following will take care for that:
Code: Select all
$c[$pd_s] = preg_replace($temp, '${1}'.addcslashes($pd_current['heading'],'$\\').'$2',$c[$pd_s]);
Christoph M. Becker – Plugins for CMSimple_XH