Not Solved My Ad Manager Plugin PHP 7.3 Problem ?
#3
Not Solved
(2021-04-07, 09:26 PM)Crazycat Wrote: 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>";


What do I need to change? They both look the same.

Can you change the code and share it.
Reply


Messages In This Thread
RE: My Ad Manager Plugin PHP 7.3 Problem ? - by arhavili - 2021-04-07, 10:16 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)