Re: HTTP parse_html null target
"Alexander V. Lukyanov" <[email protected]> Thu, 3 Jan 2008 12:37:12 +0300
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Jan 02, 2008 at 10:20:36AM +0100, R. Wajda wrote: > empty target in a link causes lftp to generate coredump. Here is my patch. -- Alexander.
diff2
(text/plain, 529 B)
Index: HttpDir.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/HttpDir.cc,v
retrieving revision 1.102
diff -u -p -r1.102 HttpDir.cc
--- HttpDir.cc 28 Dec 2007 10:23:10 -0000 1.102
+++ HttpDir.cc 3 Jan 2008 09:29:09 -0000
@@ -70,6 +70,8 @@ static bool find_value(const char *scan,
if(*scan=='"' || *scan=='\'')
quote=*scan++;
+ if(match)
+ store.set("");
while(scan<more && (quote ? *scan!=quote : !is_ascii_space(*scan)))
{
if(match)