fix: remove g
flag for preg_replace
This commit is contained in:
parent
b21bf52e4d
commit
08f097cc09
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ final class URLMapper
|
||||||
|
|
||||||
public function fromPathInfo( )
|
public function fromPathInfo( )
|
||||||
{
|
{
|
||||||
$path = rtrim( preg_replace( '/\/\/+/g', '/', $_SERVER[ 'PATH_INFO' ] ?? '') , '/' );
|
$path = rtrim( preg_replace( '/\/\/+/', '/', $_SERVER[ 'PATH_INFO' ] ?? '') , '/' );
|
||||||
if ( !$path ) {
|
if ( !$path ) {
|
||||||
$path = '/' . $this->package->config( $this->configBase . '/default' , 'home' );
|
$path = '/' . $this->package->config( $this->configBase . '/default' , 'home' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue