InputFilterer unum and num throw exceptions when passed large numbers

  • Thread starter Thread starter PaulB
  • Start date Start date

PaulB

Guest
Member
The current code for filtering unum and num will throw an exception when passed a sufficiently large number, as floatval will convert those to INF:

PHP:

Code:
php > var_export(floatval('1e99999'));
INF
php > var_export(floatval('-1e99999'));
-INF
php > var_export(strval(floatval('1e99999')) + 0);
PHP Warning:  Uncaught TypeError: Unsupported operand types: string + int in php shell code:1
Stack trace:
#0 {main}
  thrown in php shell code on line 1

Warning: Uncaught...

Read more


free plugins
minecraft paid for free
mcmarket
mc-market
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
Top