Permalink
Browse files

Just strip off query params indiscriminantly

  • Loading branch information...
1 parent dac6ff7 commit 1b6afac4de84d55747350911795f07640fd04821 @patrickomatic committed Oct 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 urlimaging/models.py
View
@@ -107,7 +107,7 @@ def parse_url(self, url):
if self.todo and valid_image_path(url):
self.url = sanitize_url(url)
- self.ext = os.path.splitext(re.sub(r'\?((.+)\=(.+))+$', '', url))[-1]
+ self.ext = os.path.splitext(re.sub(r'\?.+$', '', url))[-1]
if not self.ext:
self.ext = '.jpg'

0 comments on commit 1b6afac

Please sign in to comment.