X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/3e276f49505e607b72892b40d18ac2cef194497e..ee99f155d35803cc802ce2a2200fb98cee015772:/apps/cover/forms.py

diff --git a/apps/cover/forms.py b/apps/cover/forms.py
index fab0bb62..d726f1fa 100755
--- a/apps/cover/forms.py
+++ b/apps/cover/forms.py
@@ -38,7 +38,7 @@ class FlickrForm(forms.Form):
 
     def clean_source_url(self):
         url = self.cleaned_data['source_url']
-        m = re.match(r'(https?://)?(www.)?flickr.com/photos/(?P<author>[^/]+)/(?P<img>\d+)', url)
+        m = re.match(r'(https?://)?(www\.|secure\.)?flickr\.com/photos/(?P<author>[^/]+)/(?P<img>\d+)/?', url)
         if not m:
             raise forms.ValidationError("It doesn't look like Flickr URL.")
         author_slug, img_id = m.group('author'), m.group('img')