Commit aa8a9403dce1a8f6afedca36d86d718189cdd50b

Authored by Megan Watson
1 parent d58cdead

KTS-3150

"WebDAV Interface - "&" in folder names causes error"
Fixed. Replaced the & with %26.

Committed by: Megan Watson
Reviewed by: Isaac Lundall



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8248 c91229c3-7414-0410-bfa2-8a42b809f60b
ktwebdav/lib/KTWebDAVServer.inc.php
@@ -585,6 +585,8 @@ class KTWebDAVServer extends HTTP_WebDAV_Server @@ -585,6 +585,8 @@ class KTWebDAVServer extends HTTP_WebDAV_Server
585 if($this->dav_client == 'MC'){ 585 if($this->dav_client == 'MC'){
586 $path = str_replace('%2F', '/', urlencode($path)); 586 $path = str_replace('%2F', '/', urlencode($path));
587 } 587 }
  588 + $path = str_replace('&', '%26', $path);
  589 +
588 $info = array(); 590 $info = array();
589 $info["path"] = $path; 591 $info["path"] = $path;
590 $info["props"] = array(); 592 $info["props"] = array();
@@ -666,6 +668,8 @@ class KTWebDAVServer extends HTTP_WebDAV_Server @@ -666,6 +668,8 @@ class KTWebDAVServer extends HTTP_WebDAV_Server
666 if($this->dav_client == 'MC'){ 668 if($this->dav_client == 'MC'){
667 $path = str_replace('%2F', '/', urlencode(utf8_encode($path))); 669 $path = str_replace('%2F', '/', urlencode(utf8_encode($path)));
668 } 670 }
  671 + $path = str_replace('&', '%26', $path);
  672 +
669 // create result array 673 // create result array
670 $info = array(); 674 $info = array();
671 $info["path"] = $path; 675 $info["path"] = $path;