Update article-validator.php

This commit is contained in:
2026-06-14 13:05:20 +02:00
parent 0ed4de74b0
commit f60a4a4f60
+2 -1
View File
@@ -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;
} }
/** /**