]> git.mxchange.org Git - friendica.git/commitdiff
Fix Proxy module routes
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 3 May 2019 01:35:37 +0000 (21:35 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 3 May 2019 01:35:37 +0000 (21:35 -0400)
- Fix EOL in view/templates/exception.tpl

src/App/Router.php
view/templates/exception.tpl

index 83cdf425542c5c3a2df8fa59f46498879eef5f31..34ca0df3dd1b19b05e92a33397c31790490e6960 100644 (file)
@@ -146,10 +146,10 @@ class Router
                        $collector->addRoute(['GET'], '/{profile:\d+}/view',                 Module\Profile::class);
                });
                $this->routeCollector->addGroup('/proxy', function (RouteCollector $collector) {
-                       $collector->addRoute(['GET'], '[/]',                                 Module\Proxy::class);
-                       $collector->addRoute(['GET'], '/{url}',                              Module\Proxy::class);
-                       $collector->addRoute(['GET'], '/sub1/{url}',                         Module\Proxy::class);
-                       $collector->addRoute(['GET'], '/sub1/sub2/{url}',                    Module\Proxy::class);
+                       $collector->addRoute(['GET'], '[/]'                                , Module\Proxy::class);
+                       $collector->addRoute(['GET'], '/{url}'                             , Module\Proxy::class);
+                       $collector->addRoute(['GET'], '/{sub1}/{url}'                      , Module\Proxy::class);
+                       $collector->addRoute(['GET'], '/{sub1}/{sub2}/{url}'               , Module\Proxy::class);
                });
                $this->routeCollector->addRoute(['GET', 'POST'], '/register',            Module\Register::class);
                $this->routeCollector->addRoute(['GET'],         '/statistics.json',     Module\Statistics::class);
index cc4e6167d05e813996ab0845d15308b39f062a88..02b7648e3a0f584ea8bc9312db1ca067f7be81f6 100644 (file)
@@ -1,4 +1,4 @@
-<div id="exception" class="generic-page-wrapper">\r
-    <h1>{{$title}}</h1>\r
-    <p>{{$message}}</p>\r
-</div>\r
+<div id="exception" class="generic-page-wrapper">
+    <h1>{{$title}}</h1>
+    <p>{{$message}}</p>
+</div>