summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-04-03 22:31:34 +0000
committerTom Needham <needham.thomas@gmail.com>2012-04-03 22:31:34 +0000
commitacdce2b1e01f7c0a77b7e7949540e1b0ba94efd1 (patch)
tree8955df1e7890cc2f51b24251cb293bcf76b016fd /lib/base.php
parent95c2ac5d585bfd1106b173c00b4c29719c08b25f (diff)
downloadnextcloud-server-acdce2b1e01f7c0a77b7e7949540e1b0ba94efd1.tar.gz
nextcloud-server-acdce2b1e01f7c0a77b7e7949540e1b0ba94efd1.zip
Check blacklist before saving to filesystem
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index a4a94e86968..83dd0c98f45 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -365,6 +365,9 @@ class OC{
OC_App::loadApps();
}
}
+
+ // Check for blacklisted files
+ OC_Hook::connect('OC_Filesystem','write','OC_Filesystem','isBlacklisted');
//make sure temporary files are cleaned up
register_shutdown_function(array('OC_Helper','cleanTmp'));