]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Redirect using HTTP 303 so that form POST data is not re-submitted to the destination...
authorCraig Andrews <candrews@integralblue.com>
Thu, 8 Apr 2010 21:20:24 +0000 (17:20 -0400)
committerCraig Andrews <candrews@integralblue.com>
Thu, 8 Apr 2010 21:20:24 +0000 (17:20 -0400)
plugins/OpenID/openidserver.php

index afbca553f5e42799558ba5635bbf5ef3d6334adb..a31596a1078e47d1282b13e582a39cae76586b5a 100644 (file)
@@ -71,7 +71,7 @@ class OpenidserverAction extends Action
                 }else{
                     /* Go log in, and then come back. */
                     common_set_returnto($_SERVER['REQUEST_URI']);
-                    common_redirect(common_local_url('login'));
+                    common_redirect(common_local_url('login'), 303);
                     return;
                 }
             }else if(common_profile_url($user->nickname) == $request->identity || $request->idSelect()){
@@ -91,7 +91,7 @@ class OpenidserverAction extends Action
                         $_SESSION['openid_allow_url'] = $allowResponse->encodeToUrl();
                         $_SESSION['openid_deny_url'] = $denyResponse->encodeToUrl();
                         //ask the user to trust this trust root
-                        common_redirect(common_local_url('openidtrust'));
+                        common_redirect(common_local_url('openidtrust'), 303);
                         return;
                     }
                 }else{