未验证 提交 5f7f7f1a 编写于 作者: A Asher

Simplify query concatenation in URL callback

Cases in URLs like ?&a=b or ?a=b& appear to be handled just fine.
上级 d14c2e5b
...@@ -151,7 +151,7 @@ router.get("/callback", ensureAuthenticated, async (req, res) => { ...@@ -151,7 +151,7 @@ router.get("/callback", ensureAuthenticated, async (req, res) => {
scheme: getFirstString(req.query["vscode-scheme"]) || "code-oss", scheme: getFirstString(req.query["vscode-scheme"]) || "code-oss",
authority: getFirstString(req.query["vscode-authority"]), authority: getFirstString(req.query["vscode-authority"]),
path: getFirstString(req.query["vscode-path"]), path: getFirstString(req.query["vscode-path"]),
query: (getFirstString(req.query.query) ? getFirstString(req.query.query) + "&" : "") + qs.stringify(query), query: (getFirstString(req.query.query) || "") + "&" + qs.stringify(query),
fragment: getFirstString(req.query["vscode-fragment"]), fragment: getFirstString(req.query["vscode-fragment"]),
}, },
// Make sure the map doesn't leak if nothing fetches this URI. // Make sure the map doesn't leak if nothing fetches this URI.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册