]> source.dussan.org Git - nextcloud-server.git/commitdiff
disable code check for shipped apps
authorGeorg Ehrke <developer@georgehrke.com>
Mon, 16 Jun 2014 11:49:02 +0000 (13:49 +0200)
committerGeorg Ehrke <developer@georgehrke.com>
Mon, 16 Jun 2014 11:49:02 +0000 (13:49 +0200)
lib/private/installer.php

index f7c770bf9a91168de654d7bf8cf2fa85a60c604e..466aa4a8f899d1e5f6bc8616f9e6d198479ec41d 100644 (file)
@@ -310,7 +310,7 @@ class OC_Installer{
                }
                $info=OC_App::getAppInfo($extractDir.'/appinfo/info.xml', true);
                // check the code for not allowed calls
-               if(!OC_Installer::checkCode($info['id'], $extractDir)) {
+               if(!$isShipped && !OC_Installer::checkCode($info['id'], $extractDir)) {
                        OC_Helper::rmdirr($extractDir);
                        throw new \Exception($l->t("App can't be installed because of not allowed code in the App"));
                }