8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-25 00:03:03 +01:00

-m Fix bug: 623992 - double forward slash in connection string. With thanks to Mark O'Donohue.

This commit is contained in:
paul_reeves 2002-11-13 14:43:01 +00:00
parent 35c8051223
commit b5bb9d5560

View File

@ -1216,6 +1216,12 @@ static int expand_filename2(TEXT * from_buff, USHORT length, TEXT * to_buff)
while (*from) { while (*from) {
segment = to; segment = to;
/* skip dual // (will collapse /// to / as well) */
if (*from == '/' && from[1] == '/') {
++from;
continue;
}
/* Copy the leading slash, if any */ /* Copy the leading slash, if any */
if (*from == '/') { if (*from == '/') {