mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
also block \r
This commit is contained in:
parent
4ca3c3df22
commit
9277bd2026
2 changed files with 2 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ abstract class AbstractShare implements IShare {
|
|||
private $forbiddenCharacters;
|
||||
|
||||
public function __construct() {
|
||||
$this->forbiddenCharacters = array('?', '<', '>', ':', '*', '|', '"', chr(0), "\n");
|
||||
$this->forbiddenCharacters = array('?', '<', '>', ':', '*', '|', '"', chr(0), "\n", "\r");
|
||||
}
|
||||
|
||||
protected function verifyPath($path) {
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ abstract class AbstractShare extends TestCase {
|
|||
// / ? < > \ : * | " are illegal characters in path on windows
|
||||
return array(
|
||||
array("new\nline"),
|
||||
array("\rreturn"),
|
||||
array('null' . chr(0) . 'byte'),
|
||||
array('foo?bar'),
|
||||
array('foo<bar>'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue