[ckan-changes] commit/ckanext-inspire: amercader: Ignore anchor links when looking for URLs in WAFs

Bitbucket commits-noreply at bitbucket.org
Wed Jun 8 14:38:26 UTC 2011


1 new changeset in ckanext-inspire:

http://bitbucket.org/okfn/ckanext-inspire/changeset/b46ed93e8360/
changeset:   b46ed93e8360
user:        amercader
date:        2011-06-08 16:38:18
summary:     Ignore anchor links when looking for URLs in WAFs
affected #:  1 file (52 bytes)

--- a/ckanext/inspire/harvesters.py	Fri May 20 14:05:53 2011 +0100
+++ b/ckanext/inspire/harvesters.py	Wed Jun 08 15:38:18 2011 +0100
@@ -684,6 +684,8 @@
                 continue
             if '/' in url:
                 continue
+            if '#' in url:
+                continue
             urls.append(url)
         base_url = base_url.rstrip('/').split('/')
         if 'index' in base_url[-1]:

Repository URL: https://bitbucket.org/okfn/ckanext-inspire/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list