Skip to content

Commit

Permalink
Merge pull request #20 from Upstatement/12/double_slash
Browse files Browse the repository at this point in the history
Apply double-slash patch
  • Loading branch information
jarednova authored Oct 23, 2019
2 parents e5b76bd + 051d78e commit 882de20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public static function map($route, $callback, $args = array()) {
} else {
$base_path = '/' . $base_path . '/';
}
// Clean any double slashes that have resulted
$base_path = str_replace( "//", "/", $base_path );
$upstatement_routes->router->setBasePath($base_path);
}
$route = self::convert_route($route);
Expand Down

0 comments on commit 882de20

Please sign in to comment.