mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 00:08:30 +00:00
Remove path escaping from LaunchBrowser (#584)
This is so you can have `?query=args`.
This commit is contained in:
parent
d213a48190
commit
33b5b5b312
2 changed files with 4 additions and 3 deletions
|
@ -2767,8 +2767,7 @@ static void LaunchBrowser(const char *path) {
|
|||
if (*path != '/') path = gc(xasprintf("/%s", path));
|
||||
if ((prog = commandv(GetSystemUrlLauncherCommand(), gc(malloc(PATH_MAX)),
|
||||
PATH_MAX))) {
|
||||
u = gc(xasprintf("http://%s:%d%s", inet_ntoa(addr), port,
|
||||
gc(EscapePath(path, -1, 0))));
|
||||
u = gc(xasprintf("http://%s:%d%s", inet_ntoa(addr), port, path));
|
||||
DEBUGF("(srvr) opening browser with command %`'s %s", prog, u);
|
||||
ignore.sa_flags = 0;
|
||||
ignore.sa_handler = SIG_IGN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue