Skip to content

Commit

Permalink
5.5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
aliyilmaz committed Apr 7, 2023
1 parent f55f0d4 commit ecc6777
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Mind.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
*
* @package Mind
* @version Release: 5.5.7
* @version Release: 5.5.8
* @license GPL3
* @author Ali YILMAZ <[email protected]>
* @category Php Framework, Design pattern builder for PHP.
Expand Down Expand Up @@ -4517,7 +4517,13 @@ public function route($uri, $file, $cache=null){
}

if($this->base_url != '/'){
$request = str_replace($this->base_url, '', rawurldecode($_SERVER['REQUEST_URI']));
if(strstr(rawurldecode($_SERVER['REQUEST_URI']), $this->base_url)){
$request = rawurldecode($_SERVER['REQUEST_URI']);
for ($i=0; $i < mb_strlen($this->base_url); $i++) {
$request[$i] = ' ';
}
$request = str_replace(' ', '', $request);
}
} else {
$request = trim(rawurldecode($_SERVER['REQUEST_URI']), '/');
}
Expand Down

0 comments on commit ecc6777

Please sign in to comment.