Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Fixed JSONDataFormatter excaping (fixes #5309, thanks briley) (…

…from r101811)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112040 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 7d765fc5c616e75c8dd3efa3a788108aa730b5d6 1 parent 6f38669
@sminnee sminnee authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  api/JSONDataFormatter.php
View
2  api/JSONDataFormatter.php
@@ -115,7 +115,7 @@ public function convertDataObjectSet(DataObjectSet $set, $fields = null) {
if($item->canView()) $jsonParts[] = $this->convertDataObject($item, $fields);
}
$json = "{\n";
- $json .= '\"totalSize\": ';
+ $json .= '"totalSize": ';
$json .= (is_numeric($this->totalSize)) ? $this->totalSize : 'null';
$json .= ",\n";
$json .= "\"items\": [\n" . implode(",\n", $jsonParts) . "\n]\n";
Please sign in to comment.
Something went wrong with that request. Please try again.