]> git.mxchange.org Git - friendica.git/commitdiff
Remove remaining disallowed vertical bar in Router
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 6 May 2019 17:41:48 +0000 (13:41 -0400)
committerGitHub <noreply@github.com>
Mon, 6 May 2019 17:41:48 +0000 (13:41 -0400)
src/App/Router.php

index 668f05814b8767cc351085e78e09526e1654c36c..71f3e623390112f0bc7f9596587d46491ddc1b07 100644 (file)
@@ -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);