mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue