From: Jeffery To Date: Tue, 16 Mar 2010 09:31:05 +0000 (+0800) Subject: Fixed IE7 prompting the user to download OpenSearch description xml after login ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fa1262f51e95fb64d64105cf2a6cce77a227cd6c;p=quix0rs-gnu-social.git Fixed IE7 prompting the user to download OpenSearch description xml after login (for a private site) Flow: 1. Browser (IE7) is redirected to the login page. 2. Browser reads the page, sees OpenSearch descriptions, tries to download them. Each request gets recorded by SN as the page the user should be redirected to after logging in (returnto). 3. User logs in, then gets redirected to the returnto action, which is an OpenSearch description. The OpenSearch descriptions aren't sensitive so making them public in a private site should be okay. (I recall fixing this in 0.8.x... :-( ) --- diff --git a/index.php b/index.php index 65f251bcce..d6c617e1d9 100644 --- a/index.php +++ b/index.php @@ -200,7 +200,7 @@ function checkMirror($action_obj, $args) function isLoginAction($action) { - static $loginActions = array('login', 'recoverpassword', 'api', 'doc', 'register', 'publicxrds', 'otp'); + static $loginActions = array('login', 'recoverpassword', 'api', 'doc', 'register', 'publicxrds', 'otp', 'opensearch'); $login = null;