mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 22:38:42 +00:00
Protecting against unexpected flow
This commit is contained in:
parent
d1f6ba7f12
commit
0af064eebe
|
|
@ -139,7 +139,8 @@ class Http implements UriInterface
|
||||||
*/
|
*/
|
||||||
public function setRootPath(string $root)
|
public function setRootPath(string $root)
|
||||||
{
|
{
|
||||||
return $this->rootPath = $root;
|
$this->rootPath = $root;
|
||||||
|
$this->set($this->uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -293,7 +294,7 @@ class Http implements UriInterface
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
*/
|
*/
|
||||||
public function set(string $uri)
|
private function set(string $uri)
|
||||||
{
|
{
|
||||||
$this->uri = $uri;
|
$this->uri = $uri;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user