Closed reschke closed 1 year ago
Since we're planning to redo the whole RFC Editor web site in a year or so, I think this can wait for the redo. My guess is that it's PHP helpfully doing what PHP does and saying oh, look! a number!
There's a similar problem in that section numbers get treated as floats...
But isn't this caused by the mysql JSON export somehow?
No, it's the PHP json_encode() routine. We could ask her to take out the JSON_NUMERIC_CHECK flag which would stop trying to turn strings of digits into numbers but then the errata_id and verifier_id might be a string, too.
I would consider that a bugfix, but it's hard to say whether that would break something.
Removed JSON_NUMERIC_CHECK from json_encode.
See https://www.rfc-editor.org/errata/eid4232:
The JSON export has (see 'correct_text'):
So apparently something is trying to parse the text as number, and if that succeeds, treats it as number.