mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
escape host name
This commit is contained in:
parent
c36739bdc5
commit
6e1f693ad5
3 changed files with 26 additions and 9 deletions
|
|
@ -55,4 +55,13 @@ class Server extends TestCase {
|
|||
$server = new \Icewind\SMB\Server(uniqid(), $this->config->user, $this->config->password);
|
||||
$server->listShares();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @expectedException \Icewind\SMB\Exception\InvalidHostException
|
||||
*/
|
||||
public function testHostEscape() {
|
||||
$server = new \Icewind\SMB\Server($this->config->host . ';asd', $this->config->user, $this->config->password);
|
||||
$server->listShares();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue