summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-11 11:04:04 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-11 11:04:04 -0400
commit465767670bef61572bb38cabce901935d9e23e7b (patch)
treedf980c067b26d3b3daa38fe2e7c968d8df899490 /lib/base.php
parent39b9052c2f6d1db111202e05da186d2142b364cc (diff)
downloadnextcloud-server-465767670bef61572bb38cabce901935d9e23e7b.tar.gz
nextcloud-server-465767670bef61572bb38cabce901935d9e23e7b.zip
Check blacklist when renaming files
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 0730e5ff3a9..2cbce82677d 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -362,6 +362,7 @@ class OC{
// Check for blacklisted files
OC_Hook::connect('OC_Filesystem','write','OC_Filesystem','isBlacklisted');
+ OC_Hook::connect('OC_Filesystem', 'rename', 'OC_Filesystem', 'isBlacklisted');
//make sure temporary files are cleaned up
register_shutdown_function(array('OC_Helper','cleanTmp'));