Commit aa8a9403dce1a8f6afedca36d86d718189cdd50b
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
Showing
1 changed file
with
4 additions
and
0 deletions
ktwebdav/lib/KTWebDAVServer.inc.php
| ... | ... | @@ -585,6 +585,8 @@ class KTWebDAVServer extends HTTP_WebDAV_Server |
| 585 | 585 | if($this->dav_client == 'MC'){ |
| 586 | 586 | $path = str_replace('%2F', '/', urlencode($path)); |
| 587 | 587 | } |
| 588 | + $path = str_replace('&', '%26', $path); | |
| 589 | + | |
| 588 | 590 | $info = array(); |
| 589 | 591 | $info["path"] = $path; |
| 590 | 592 | $info["props"] = array(); |
| ... | ... | @@ -666,6 +668,8 @@ class KTWebDAVServer extends HTTP_WebDAV_Server |
| 666 | 668 | if($this->dav_client == 'MC'){ |
| 667 | 669 | $path = str_replace('%2F', '/', urlencode(utf8_encode($path))); |
| 668 | 670 | } |
| 671 | + $path = str_replace('&', '%26', $path); | |
| 672 | + | |
| 669 | 673 | // create result array |
| 670 | 674 | $info = array(); |
| 671 | 675 | $info["path"] = $path; | ... | ... |