From 051d78e37792ef6745ac796b1fb72a1c9c5ce734 Mon Sep 17 00:00:00 2001 From: Jared Novack Date: Wed, 23 Oct 2019 08:05:34 -0400 Subject: [PATCH] Apply double-slash patch --- Routes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Routes.php b/Routes.php index f5dc94f..24b64fb 100755 --- a/Routes.php +++ b/Routes.php @@ -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);