Kaydet (Commit) f12ed2fa authored tarafından Enrico Tröger's avatar Enrico Tröger

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
üst 1cac20b8
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment