From 6c03655003f90cd61958195adf5782d1ce8be44c Mon Sep 17 00:00:00 2001 From: Krzysztof Wolny Date: Mon, 28 Aug 2017 15:33:54 +0200 Subject: [PATCH 1/2] Typo fix --- .github/issue_template.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/issue_template.md b/.github/issue_template.md index 6c38d3a4..0c45b92b 100644 --- a/.github/issue_template.md +++ b/.github/issue_template.md @@ -25,7 +25,7 @@ or anything that violates the specifications. | Which Swagger/OpenAPI version? | | Which Swagger-UI version? | | How did you install Swagger-UI? | -| Which broswer & version? | +| Which browser & version? | | Which operating system? | From 947953d087ec1ee883c6f7c9f5abca89d7f819b2 Mon Sep 17 00:00:00 2001 From: HelderSepu Date: Sat, 2 Sep 2017 19:59:18 -0400 Subject: [PATCH 2/2] fix #3624 --- dev-helpers/oauth2-redirect.html | 6 +++++- dist/oauth2-redirect.html | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dev-helpers/oauth2-redirect.html b/dev-helpers/oauth2-redirect.html index 00c7f014..a7eb162d 100644 --- a/dev-helpers/oauth2-redirect.html +++ b/dev-helpers/oauth2-redirect.html @@ -11,7 +11,11 @@ var redirectUrl = oauth2.redirectUrl; var isValid, qp, arr; - qp = (window.location.hash || location.search).substring(1); + if (/code|token|error/.test(window.location.hash)) { + qp = window.location.hash.substring(1); + } else { + qp = location.search.substring(1); + } arr = qp.split("&") arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';}) diff --git a/dist/oauth2-redirect.html b/dist/oauth2-redirect.html index 00c7f014..a7eb162d 100644 --- a/dist/oauth2-redirect.html +++ b/dist/oauth2-redirect.html @@ -11,7 +11,11 @@ var redirectUrl = oauth2.redirectUrl; var isValid, qp, arr; - qp = (window.location.hash || location.search).substring(1); + if (/code|token|error/.test(window.location.hash)) { + qp = window.location.hash.substring(1); + } else { + qp = location.search.substring(1); + } arr = qp.split("&") arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})