@@ -259,7 +259,9 @@ public function unlink($path){
259
259
public function rename ($ path1 ,$ path2 ){
260
260
$ absolutePath1 =$ this ->getAbsolutePath ($ path1 );
261
261
$ absolutePath2 =$ this ->getAbsolutePath ($ path2 );
262
- if (OC_FileProxy::runPreProxies ('rename ' ,$ absolutePath1 ,$ absolutePath2 ) and OC_Filesystem::isValidPath ($ path2 )){
262
+ if (OC_FileProxy::runPreProxies ('rename ' ,$ absolutePath1 ,$ absolutePath2 )
263
+ and OC_Filesystem::isValidPath ($ path1 )
264
+ and OC_Filesystem::isValidPath ($ path2 )){
263
265
$ path1 =$ this ->getRelativePath ($ absolutePath1 );
264
266
$ path2 =$ this ->getRelativePath ($ absolutePath2 );
265
267
if ($ path1 ==null or $ path2 ==null ){
@@ -290,7 +292,9 @@ public function rename($path1,$path2){
290
292
public function copy ($ path1 ,$ path2 ){
291
293
$ absolutePath1 =$ this ->getAbsolutePath ($ path1 );
292
294
$ absolutePath2 =$ this ->getAbsolutePath ($ path2 );
293
- if (OC_FileProxy::runPreProxies ('copy ' ,$ absolutePath1 ,$ absolutePath2 ) and OC_Filesystem::isValidPath ($ path2 )){
295
+ if (OC_FileProxy::runPreProxies ('copy ' ,$ absolutePath1 ,$ absolutePath2 )
296
+ and OC_Filesystem::isValidPath ($ path1 )
297
+ and OC_Filesystem::isValidPath ($ path2 )){
294
298
$ path1 =$ this ->getRelativePath ($ absolutePath1 );
295
299
$ path2 =$ this ->getRelativePath ($ absolutePath2 );
296
300
if ($ path1 ==null or $ path2 ==null ){
0 commit comments