We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 15848a81 authored by Craig Andrews's avatar Craig Andrews

Fix the router entries for the oEmbed endpoint so they don't accidentally catch too much

parent 63e8f154
......@@ -113,6 +113,16 @@ class Router
$m->connect('main/tagother/:id', array('action' => 'tagother'));
array('action' => 'api',
'method' => 'oembed.xml',
'apiaction' => 'oembed'));
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));
array('action' => 'api',
'method' => 'oembed(.xml|.json)?',
'apiaction' => 'oembed'));
return $m;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment