Not Solved My Ad Manager Plugin PHP 7.3 Problem ?
#2
Not Solved
There are lines in which the array indexes are not protected:
find_append_templatesets("postbit", "{\$post[inline_ad]}");
find_append_templatesets("postbit_classic", "{\$post[inline_ad]}");
...
find_replace_templatesets("postbit", '#'.preg_quote('{$post[inline_ad]}').'#', '',0);
find_replace_templatesets("postbit_classic", '#'.preg_quote('{$post[inline_ad]}').'#', '',0);
...
$post[inline_ad] = "<div align=\"center\" class=\"inlinead\">".$mybb->settings['inlinead']."</div>";
Must become:
find_append_templatesets("postbit", "{\$post['inline_ad']}");
find_append_templatesets("postbit_classic", "{\$post['inline_ad']}");
...
find_replace_templatesets("postbit", '#'.preg_quote('{$post[\'inline_ad\']}').'#', '',0);
find_replace_templatesets("postbit_classic", '#'.preg_quote('{$post[\'inline_ad\']}').'#', '',0);
...
$post['inline_ad'] = "<div align=\"center\" class=\"inlinead\">".$mybb->settings['inlinead']."</div>";
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM
Reply


Messages In This Thread
RE: My Ad Manager Plugin PHP 7.3 Problem ? - by Crazycat - 2021-04-07, 09:26 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)