]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added opensearch to the list of public actions.
authorJeffery To <jeffery.to@gmail.com>
Tue, 11 Aug 2009 13:00:51 +0000 (21:00 +0800)
committerJeffery To <jeffery.to@gmail.com>
Tue, 11 Aug 2009 13:00:51 +0000 (21:00 +0800)
IE7+ will ask for this (opensearch/people and opensearch/notice) on every page access, and as the content is not sensitive, returning it is better than a 307 redirect.

index.php

index 980b9881b0d79674651d0b570c2a94f9ce7a2b41..214f922456e0734367e56697a9346ae38a431225 100644 (file)
--- a/index.php
+++ b/index.php
@@ -184,7 +184,8 @@ function main()
 
     if (!$user && common_config('site', 'private')) {
         $public_actions = array('openidlogin', 'finishopenidlogin',
-                                'recoverpassword', 'api', 'doc');
+                                'recoverpassword', 'api', 'doc',
+                                'opensearch');
         $login_action = 'openidlogin';
         if (!common_config('site', 'openidonly')) {
             $public_actions[] = 'login';