summaryrefslogtreecommitdiff
path: root/src/htsparse.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-07-15 19:19:24 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-07-15 19:19:24 +0000
commitf9086f58497bd7fb86dfcd63613a2a975e7b9007 (patch)
treed2cb928cb1b552ef9b7d52f7cc921b88149ada07 /src/htsparse.c
parentd9b93413c1561384c29a79180c94d88ce44f8e30 (diff)
Fixed buggy referer while parsing: the referer of all links in the page is the current page being parsed, NOT the parent page. (alexei dot co at gmail dot com)
* closes: issue #20
Diffstat (limited to 'src/htsparse.c')
-rw-r--r--src/htsparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htsparse.c b/src/htsparse.c
index 4acc336..fd60a1e 100644
--- a/src/htsparse.c
+++ b/src/htsparse.c
@@ -2601,8 +2601,8 @@ int htsparse(htsmoduleStruct * str, htsmoduleStructExtended * stre) {
// pas d'erreur, on continue
r_sv =
- hts_wait_delayed(str, adr, fil, save, parenturladr,
- parenturlfil, former_adr, former_fil,
+ hts_wait_delayed(str, adr, fil, save, liens[ptr]->adr,
+ liens[ptr]->fil, former_adr, former_fil,
&forbidden_url);
/* User interaction, because hts_wait_delayed can be slow.. (3.43) */