diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2016-02-14 16:09:35 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-02-14 16:52:00 +0100 |
commit | f23009fd2f79a8c7101ed82b28f9ae2d5c7c8149 (patch) | |
tree | b12af123a16e3bcc4f9c0a39d1c9cfa7c5c06262 | |
parent | 07d71c14e51e3333d2823bb0ea28b38af9c22949 (diff) | |
download | fuse-httpfs-f23009fd2f79a8c7101ed82b28f9ae2d5c7c8149.tar.gz fuse-httpfs-f23009fd2f79a8c7101ed82b28f9ae2d5c7c8149.zip |
Skip file-links starting with '?'
-rw-r--r-- | httpfs/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/httpfs/__init__.py b/httpfs/__init__.py index 1b4ede3..d877f3e 100644 --- a/httpfs/__init__.py +++ b/httpfs/__init__.py @@ -208,7 +208,8 @@ class RelativeLinkCollector(HTMLParser): attrs = dict(attrs) if "href" in attrs: href = attrs["href"] - if "/" in href[:-1] or href[0] == "." or href == "/": + if "/" in href[:-1] or href[0] == "." \ + or href[0] == "?" or href == "/": return if href[-1:] == "/": |