Skip to content

Commit ffbc3df

Browse files
Editor input encoding fix
1 parent 70bc8b2 commit ffbc3df

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cache-visual-editor",
33
"printableName": "Cache Visual Editor",
44
"packageName": "VisualEditor",
5-
"version": "0.8.3",
5+
"version": "0.8.4",
66
"description": "Visual class editor for InterSystems Caché",
77
"main": "index.js",
88
"keywords": [

source/cache/REST/Editor.cls

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,12 @@ ClassMethod OnPreDispatch() As %Status
149149

150150
return:'$isobject(%request.Content) $$$OK
151151

152-
set %request.Content = ##class(%AbstractObject).$fromJSON(%request.Content)
152+
set content = ""
153+
while ('%request.Content.AtEnd) {
154+
set content = content _ $ZCVT(%request.Content.Read($$$MaxStringLength), "I", "UTF8")
155+
}
156+
157+
set %request.Content = ##class(%AbstractObject).$fromJSON(content)
153158

154159
return $$$OK
155160
}

0 commit comments

Comments
 (0)