Merge pull request #2489 from joelittlejohn/patch-1
Avoid using Facebook garbage fragment to complete login
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
var qp = null;
|
var qp = null;
|
||||||
if(window.location.hash) {
|
if(window.location.hash && window.location.hash !== "#_=_") {
|
||||||
qp = location.hash.substring(1);
|
qp = location.hash.substring(1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -17,4 +17,4 @@ else
|
|||||||
window.opener.onOAuthComplete(qp);
|
window.opener.onOAuthComplete(qp);
|
||||||
|
|
||||||
window.close();
|
window.close();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user