Revision: 4860 http://geany.svn.sourceforge.net/geany/?rev=4860&view=rev Author: eht16 Date: 2010-04-25 17:42:56 +0000 (Sun, 25 Apr 2010)
Log Message: ----------- Fix broken opening URLs e.g. when using the 'builtin' Run command.
Modified Paths: -------------- trunk/ChangeLog trunk/src/win32.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-04-25 17:42:43 UTC (rev 4859) +++ trunk/ChangeLog 2010-04-25 17:42:56 UTC (rev 4860) @@ -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:
Modified: trunk/src/win32.c =================================================================== --- trunk/src/win32.c 2010-04-25 17:42:43 UTC (rev 4859) +++ trunk/src/win32.c 2010-04-25 17:42:56 UTC (rev 4860) @@ -700,8 +700,11 @@ 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); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.