Merge pull request #151 from pedrofariasx/fix/windows-oauth-url
fix: Escape OAuth URL parameters for Windows CLI
This commit is contained in:
@@ -95,7 +95,7 @@ function openBrowser(url) {
|
|||||||
args = [url];
|
args = [url];
|
||||||
} else if (platform === 'win32') {
|
} else if (platform === 'win32') {
|
||||||
command = 'cmd';
|
command = 'cmd';
|
||||||
args = ['/c', 'start', '', url];
|
args = ['/c', 'start', '', url.replace(/&/g, '^&')];
|
||||||
} else {
|
} else {
|
||||||
command = 'xdg-open';
|
command = 'xdg-open';
|
||||||
args = [url];
|
args = [url];
|
||||||
|
|||||||
Reference in New Issue
Block a user