Skip to content

Commit

Permalink
FIX: #11
Browse files Browse the repository at this point in the history
  • Loading branch information
drosanda committed Nov 15, 2021
1 parent 1b86153 commit 634ad16
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions kero/sine/SENE_Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,19 +180,8 @@ private function newRouteFolder()
{
$sene_method = $this->config->method;
if (isset($_SERVER[$sene_method])) {
$path = $_SERVER[$sene_method];
$path = strtr($path,'//', '/');
$path = explode('/', strtr($path,'//', '/'));
$i=0;
foreach ($path as $p) {
if (strlen($p)>0) {
$pos = strpos($p, '?');
if ($pos !== false) {
unset($path[$i]);
}
}
$i++;
}
$path = parse_url($_SERVER[$sene_method]);
if(isset($path['path'])) $path = explode('/', strtr($path['path'],'//', '/'));
unset($p);
$path = $this->ovrRoutes($path);
if (!isset($path[1])) {
Expand Down

0 comments on commit 634ad16

Please sign in to comment.