| This is a patch that I've made against 3.33 htsname.c
I've made up with a new -N option, called "%k", to preserve
the query string as it is. Please tell me what do you think
of it:
--- htsname.c.orig Tue Jun 7 12:52:28 2005
+++ htsname.c Tue Jun 7 13:12:05 2005
@@ -889,7 +889,17 @@
strcatbuff(b, protocol_str[protocol]);
b+=strlen(b); // pointer à la fin
break;
- }
+ case 'k':
+ {
+ char *d = strchr(fil_complete,'?');
+ if( d != NULL )
+ {
+ strcatbuff(b, d);
+ b+=strlen(b);
+ }
+ }
+ break;
+ }
} else
*b++=*a++;
}
| |