diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-26 18:08:49 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-26 18:08:49 +0200 |
commit | 2b10371bdeb2c8a3d5cc2617ada5cf8195c264c9 (patch) | |
tree | f25b463c90992764887416c3082098fed6ecac65 /lib/helper.php | |
parent | 40f95ffdf3edf9ab45c15bd5b9018d7f4d92baa9 (diff) | |
parent | 127796218314c6b1f19ba86f74caa913375aac8d (diff) | |
download | nextcloud-server-2b10371bdeb2c8a3d5cc2617ada5cf8195c264c9.tar.gz nextcloud-server-2b10371bdeb2c8a3d5cc2617ada5cf8195c264c9.zip |
fix merge conflicts
Diffstat (limited to 'lib/helper.php')
-rwxr-xr-x | lib/helper.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/helper.php b/lib/helper.php index 1d9862bf8b1..c5af76dbe52 100755 --- a/lib/helper.php +++ b/lib/helper.php @@ -569,14 +569,22 @@ class OC_Helper { return false; } if($realpath_sub && $realpath_sub != '' && $realpath_parent && $realpath_parent != ''){ - if(substr($sub, 0, strlen($parent)) == $parent){ + if(substr($realpath_sub, 0, strlen($realpath_parent)) == $realpath_parent){ return true; } }else{ - if(substr($realpath_sub, 0, strlen($realpath_parent)) == $realpath_parent){ + if(substr($sub, 0, strlen($parent)) == $parent){ return true; } } + /* + echo 'SUB: ' . $sub . "\n"; + echo 'PAR: ' . $parent . "\n"; + echo 'REALSUB: ' . $realpath_sub . "\n"; + echo 'REALPAR: ' . $realpath_parent . "\n"; + echo substr($realpath_sub, 0, strlen($realpath_parent)); + exit; + */ return false; } } |