MyBB Community Forums

Full Version: Division by zero FPD
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
repsperpage setting-related:
https://github.com/mybb/mybb/blob/featur...n.php#L835
https://github.com/mybb/mybb/blob/featur...n.php#L854 (zero as an argument)

membersperpage setting-related:
https://github.com/mybb/mybb/blob/featur...p.php#L355 (zero as an argument)

I think that's all.
I can't understand how these things weren't thought of in the first place. If an integer can be zero and is being used anywhere near division, it should be sanity-checked.

I guess this comes from a decade-old codebase.
yup, related to this . Should all be fixed in one go.
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/1956

Thanks for contributing to MyBB!

Regards,
The MyBB Group