Re: HTTP Host tag port issue (3.6.1/CVS)
"Alexander V. Lukyanov" <[email protected]> Thu, 3 Jan 2008 12:34:53 +0300
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jan 02, 2008 at 06:42:53AM +0100, R. Wajda wrote: > ---> Host: foobar.com:foobar.com Thank you for the report. I have fixed it another way in CVS. -- Alexander.
diff1
(text/plain, 477 B)
Index: url.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/url.cc,v
retrieving revision 1.40
diff -u -p -r1.40 url.cc
--- url.cc 24 Oct 2007 14:38:49 -0000 1.40
+++ url.cc 3 Jan 2008 09:15:15 -0000
@@ -417,8 +417,7 @@ const char *url::encode(const char *s,co
{
if(!s || !*s)
return s;
- static xstring u("");
- u.truncate(0);
+ xstring& u=xstring::get_tmp("");
char c;
while((c=*s++))
{