Noticed if a strange value is set in php.ini, it is used as is and shows up in data-max-size. Eg, if I use "8 M", data-max-size is
"8 ". Setting it to
8blahblahM sets data-max-size to "" which I think is correct, so it's just if there's a bunch of spaces and no math is done I guess.
@diosmosis I've improved the code a bit more and added a simple test