From: Craig Andrews Date: Thu, 30 Jul 2009 19:37:35 +0000 (-0400) Subject: Fix the router entries for the oEmbed endpoint so they don't accidentally catch too... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=15848a815efa00d89c0daa7abf340ec899059f8f;p=quix0rs-gnu-social.git Fix the router entries for the oEmbed endpoint so they don't accidentally catch too much --- diff --git a/lib/router.php b/lib/router.php index e10d484f4e..19839b9972 100644 --- a/lib/router.php +++ b/lib/router.php @@ -113,6 +113,16 @@ class Router $m->connect('main/tagother/:id', array('action' => 'tagother')); + $m->connect('main/oembed.xml', + array('action' => 'api', + 'method' => 'oembed.xml', + 'apiaction' => 'oembed')); + + $m->connect('main/oembed.json', + array('action' => 'api', + 'method' => 'oembed.json', + 'apiaction' => 'oembed')); + // these take a code foreach (array('register', 'confirmaddress', 'recoverpassword') as $c) { @@ -475,11 +485,6 @@ class Router Event::handle('RouterInitialized', array($m)); - $m->connect('main/:method', - array('action' => 'api', - 'method' => 'oembed(.xml|.json)?', - 'apiaction' => 'oembed')); - return $m; }