Fix broken opening URLs e.g. when using the 'builtin' Run command.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4860 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
1cac20b8da
commit
f12ed2fabe
@ -6,6 +6,7 @@
|
||||
* src/win32.c:
|
||||
Change the limit for the command line length when executing commands
|
||||
to a maximum of 32768 characters (closes #2979697).
|
||||
Fix broken opening URLs e.g. when using the 'builtin' Run command.
|
||||
* tagmanager/ctags.c:
|
||||
Change eFree() to simply ignore NULL pointers instead of asserting.
|
||||
* src/main.c:
|
||||
|
||||
@ -700,8 +700,11 @@ void win32_open_browser(const gchar *uri)
|
||||
if (strncmp(uri, "file://", 7) == 0)
|
||||
{
|
||||
uri += 7;
|
||||
while (*uri == '/')
|
||||
uri++;
|
||||
if (strchr(uri, ':') != NULL)
|
||||
{
|
||||
while (*uri == '/')
|
||||
uri++;
|
||||
}
|
||||
}
|
||||
ShellExecute(NULL, "open", uri, NULL, NULL, SW_SHOWNORMAL);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user