X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/44f4112a8796f5d2c555bed63f34b9ce98e5fe65..6861512e712b1f573102b6114177d0e156f7c160:/apps/cover/forms.py diff --git a/apps/cover/forms.py b/apps/cover/forms.py index f49f4f54..e6ffdff4 100755 --- a/apps/cover/forms.py +++ b/apps/cover/forms.py @@ -80,7 +80,7 @@ class FlickrForm(forms.Form): assert match license_url = match.group(1) self.cleaned_data['license_url'] = license_url - re_license = re.compile(r'http://creativecommons.org/licenses/([^/]*)/([^/]*)/.*') + re_license = re.compile(r'https?://creativecommons.org/licenses/([^/]*)/([^/]*)/.*') m = re_license.match(license_url) assert m self.cleaned_data['license_name'] = 'CC %s %s' % (m.group(1).upper(), m.group(2))