HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Advanced variable extraction notfound
Author: Xavier Roche
Date: 10/21/2005 12:06
 
> When using advanced variable extraction I am unable
> to get the notfound field to work.

This is a bug; fixed for the next (pre)release, thanks for the report!

Besides, the documentation is bogus ; the last field is the "not found" one:
%[param:before:after:empty:notfound]

Here's the patch:

--- htsname.c.orig      2005-10-21 12:05:49.290881626 +0200
+++ htsname.c   2005-10-21 12:01:22.000000000 +0200
@@ -799,6 +799,9 @@
                   strcpybuff(b, name[4]);    /* not found replacement if any
*/
                   b += strlen(b);
                 }
+                                                       } else {
+                                                               strcpybuff(b,
name[4]);    /* not found replacement if any */
+                                                               b +=
strlen(b);
               }
             }
           break;


 
Reply Create subthread


All articles

Subject Author Date
Advanced variable extraction notfound

10/14/2005 22:19
Re: Advanced variable extraction notfound

10/21/2005 12:06
Re: Advanced variable extraction notfound

11/18/2005 15:58




2

Created with FORUM 2.0.11