2007-04-28, 02:10 AM
I've found and exterminated a small bug.
Someone noticed before that if you enter
The MyBB guys may use this code anywhere they like.
EDIT: I updated the fix to use preg_replace() as opposed to ereg_replace().
If anyone has any trouble with this fix, post it here.
Someone noticed before that if you enter
\"
into any setting, it will create a syntax error in inc/settings.php. This person fixed the bug by adding a line of code. However, the same syntax error is produced if you enter \\"
as well. In fact, this syntax error can be reproduced by entering any number of those \, and then a ". So, I decided that to resolve this once and for all, regular expressions would be worth using.The MyBB guys may use this code anywhere they like.
EDIT: I updated the fix to use preg_replace() as opposed to ereg_replace().
If anyone has any trouble with this fix, post it here.