Added file name check in webdav connector
- added file name check for the put, rename and setNames() methods which throw a "Bad Request" whenever invalid characters are used - replaced \OC\Filesystem usage with $this->getFS() to be able to write unit tests
Showing
- lib/private/connector/sabre/file.php 8 additions, 2 deletionslib/private/connector/sabre/file.php
- lib/private/connector/sabre/node.php 7 additions, 2 deletionslib/private/connector/sabre/node.php
- lib/private/connector/sabre/objecttree.php 5 additions, 0 deletionslib/private/connector/sabre/objecttree.php
- tests/lib/connector/sabre/file.php 40 additions, 0 deletionstests/lib/connector/sabre/file.php
- tests/lib/connector/sabre/objecttree.php 16 additions, 0 deletionstests/lib/connector/sabre/objecttree.php
Please register or sign in to comment