Update article-validator.php
This commit is contained in:
@@ -44,7 +44,8 @@ function articleContentValidator($content)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Prüft direkt, ob der String valides JSON enthält
|
// Prüft direkt, ob der String valides JSON enthält
|
||||||
return json_validate($content);
|
json_decode($content);
|
||||||
|
return json_last_error() === JSON_ERROR_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user