From afb0c7b8fd1fa70387eefc03fc09b2983a561531 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 6 May 2019 13:41:48 -0400 Subject: [PATCH] Remove remaining disallowed vertical bar in Router --- src/App/Router.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App/Router.php b/src/App/Router.php index 668f05814b..71f3e62339 100644 --- a/src/App/Router.php +++ b/src/App/Router.php @@ -160,7 +160,8 @@ class Router $this->routeCollector->addRoute(['GET'], '/nogroup', Module\Group::class); $this->routeCollector->addRoute(['GET'], '/objects/{guid}', Module\Objects::class); $this->routeCollector->addGroup('/oembed', function (RouteCollector $collector) { - $collector->addRoute(['GET'], '/[b2h|h2b]', Module\Oembed::class); + $collector->addRoute(['GET'], '/b2h', Module\Oembed::class); + $collector->addRoute(['GET'], '/h2b', Module\Oembed::class); $collector->addRoute(['GET'], '/{hash}', Module\Oembed::class); }); $this->routeCollector->addRoute(['GET'], '/outbox/{owner}', Module\Outbox::class); -- 2.39.5