diff --git a/core/ajax/update.php b/core/ajax/update.php
index b2ca0e3c8eccd2ee91244cd1927e13a31c1caae0..a9ab731627058b14600e0f32d47a7f251e4b2c6e 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -2,6 +2,8 @@
 set_time_limit(0);
 require_once '../../lib/base.php';
 
+\OCP\JSON::callCheck();
+
 if (OC::checkUpgrade(false)) {
 	// if a user is currently logged in, their session must be ignored to
 	// avoid side effects