RPC: Coerce numeric values into integers
commit795971bc806776ad48de6f0135736cbaaefa5fcd
authorLukas Fleischer <archlinux@cryptocrack.de>
Sat, 20 Aug 2011 23:45:41 +0000 (21 01:45 +0200)
committerLukas Fleischer <archlinux@cryptocrack.de>
Fri, 23 Sep 2011 13:30:32 +0000 (23 15:30 +0200)
tree057c347f6cb1a24492dcf41e7d1940f19346db47
parent04a0fd47482f513c24645eb3f8b88b07303f9ec4
RPC: Coerce numeric values into integers

Coerce following fields into integers to ensure json_encode() serializes
them as integers:

* ID
* CategoryID
* NumVotes
* OutOfDate
* FirstSubmitted
* LastModified

This means that there will be a minor API break. There's no better way
to do this properly, though. Fixes FS#25693.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
web/lib/aurjson.class.php