Subject: | Fix for correct automatic encoding long strings of digits. |
I found a bug in Frontier::RPC2. The automatic encoding of scalars
doesn't conform to the specs when a long string of digits is passed into
the _scalar method.
The fix is easy.:
Just replace this line....
if ($value =~ /^[+-]?\d+$/) {
with this line....
if (($value =~ /^[+-]?\d{1,10}$/) && ($value <= 2147483647) && ($value
Show quoted text
>= -2147483648)) {