diff options
author | Joas Schilling <coding@schilljs.com> | 2023-07-12 09:23:37 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-07-20 10:40:09 +0200 |
commit | 2014e7b836deab4bb9c02cccf0aadb1ec597e1f1 (patch) | |
tree | 29bd0e4a9efb1671096c57c74e00471a690a7c7f /lib/base.php | |
parent | 3da48c2adb606ce26cbd27b7d4ddde1bc9565f77 (diff) | |
download | nextcloud-server-2014e7b836deab4bb9c02cccf0aadb1ec597e1f1.tar.gz nextcloud-server-2014e7b836deab4bb9c02cccf0aadb1ec597e1f1.zip |
fix(apps): Fix loading info.xml file
Ref: https://bugs.php.net/bug.php?id=62577
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 09ec5be441b..ed62494ab30 100644 --- a/lib/base.php +++ b/lib/base.php @@ -588,6 +588,11 @@ class OC { } public static function init(): void { + // prevent any XML processing from loading external entities + libxml_set_external_entity_loader(static function () { + return null; + }); + // calculate the root directories OC::$SERVERROOT = str_replace("\\", '/', substr(__DIR__, 0, -4)); |