[pmwiki-users] Flipbox recipe and preg_replace
Petko Yotov
5ko at 5ko.fr
Wed Jul 17 11:24:46 PDT 2019
Flipbox doesn't suffer from the preg_replace problems in PHP 5.5, the
grep'd lines are in a conditional for the recipe to work with PmWiki
versions older than 2.2.58 on PHP older than 5.5.
However, it did suffer from the create_function() problems in PHP 7.2,
so I've updated it, you can get it from the Cookbook.
(Flipbox now does require PmWiki 2.2.58 or more recent).
Petko
On 16/07/2019 14:32, Johan Bengtsson wrote:
> https://www.pmwiki.org/wiki/Cookbook/Flipbox
>
>
> I believe this recipe still suffers from the preg_replace probs:
>
> [elijah at peach cookbook]$ grep -n \/e flipbox.php
> 36: Markup('flipbox_pre', '<[=',
> "/(\\[[$FlipboxChoices]{1,3})(\\])/e", "FmtPreFlipbox('$1', '$2')");
> 37: Markup('flipbox', 'inline',
> "/\\[([$FlipboxChoices]{1,3})\t\t\t(\\d+)\t\t\t\\]/e",
>
> It is disabled in our wiki so not top priority, but I think one or two
> of our users liked it...
More information about the pmwiki-users
mailing list