diff options
author | Matthew Dawson <matthew@mjdsystems.ca> | 2011-01-03 17:58:49 -0500 |
---|---|---|
committer | Matthew Dawson <matthew@mjdsystems.ca> | 2011-01-03 17:58:49 -0500 |
commit | 0f5923a15030c42156eddf05b161f92024c055ed (patch) | |
tree | c607853c9ec64de9e5467394b1998f94b608597e /inc | |
parent | 61ce6e21ec751269501302b91d1d2e60b6cea2e9 (diff) | |
download | nextcloud-server-0f5923a15030c42156eddf05b161f92024c055ed.tar.gz nextcloud-server-0f5923a15030c42156eddf05b161f92024c055ed.zip |
Add similar check to the canWrite function.
Signed-off-by: Matthew Dawson <matthew@mjdsystems.ca>
Diffstat (limited to 'inc')
-rw-r--r-- | inc/lib_filesystem.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/lib_filesystem.php b/inc/lib_filesystem.php index accc133b7b6..170d296bd23 100644 --- a/inc/lib_filesystem.php +++ b/inc/lib_filesystem.php @@ -125,7 +125,7 @@ class OC_FILESYSTEM{ if(substr($path,0,1)!=='/'){ $path='/'.$path; } - if(strstr($path,'/../')){ + if(strstr($path,'/../') || strrchr($path, '/') === '/..' ){ return false; } return true;//dummy untill premissions are correctly implemented, also the correcty value because for now users are locked in their seperate data dir and can read/write everything in there |