if there is a varchar-column with the value 04 the json export will not be escaped.
Example :
--
-- Table structure for table `test`
--
CREATE TABLE IF NOT EXISTS `test` (
`testcolumn` varchar(255) NOT NULL
);
--
-- Dumping data for table `test`
--
INSERT INTO `test` (`testcolumn`) VALUES
('test'),
('04'),
('4');
the
var_dump(is_numeric("04")); => true
var_dump(is_numeric("4")); => true
var_dump(is_numeric(4)); => true
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
an example database
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
json export
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
sry, for messing this one up.
in /libraries/export/json.php
the line 165: "} elseif (is_numeric($record[$i]))"
will catch also strings like "04" as numeric.
So either cast to an real integer if you want to loose the " or check the type of the column first
Moving to bugs.
This bug was fixed in repository and will be part of a future release; thanks for reporting.