X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/44f4112a8796f5d2c555bed63f34b9ce98e5fe65..449281d64b3c908fdb3622923a0d42f3942da3de:/apps/cover/forms.py?ds=sidebyside 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))