mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Fixed invalid image data handling
This commit is contained in:
parent
98857436bd
commit
989b761b0d
1 changed files with 5 additions and 1 deletions
|
@ -249,7 +249,11 @@ function ReadData(data) {
|
||||||
// dont allow overwriting
|
// dont allow overwriting
|
||||||
// ?!>>>
|
// ?!>>>
|
||||||
if (!currQuestion.HasImage()) {
|
if (!currQuestion.HasImage()) {
|
||||||
currQuestion.I = JSON.parse(currData);
|
try {
|
||||||
|
currQuestion.I = JSON.parse(currData);
|
||||||
|
} catch (e) {
|
||||||
|
currQuestion.I = [currData];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ExpectedIdentifier = ['?', '+'];
|
ExpectedIdentifier = ['?', '+'];
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue