mirror of https://github.com/kivy/kivy.git
fix url loader bug with querysrtings #547
This commit is contained in:
parent
93b6622d21
commit
df3beb9e3c
|
@ -316,6 +316,10 @@ class ImageLoader(object):
|
||||||
# extract extensions
|
# extract extensions
|
||||||
ext = filename.split('.')[-1].lower()
|
ext = filename.split('.')[-1].lower()
|
||||||
|
|
||||||
|
# prevent url querystrings
|
||||||
|
if filename.startswith((('http://', 'https://'))):
|
||||||
|
ext = ext.split('?')[0]
|
||||||
|
|
||||||
# special case. When we are trying to load a "zip" file with image, we
|
# special case. When we are trying to load a "zip" file with image, we
|
||||||
# will use the special zip_loader in ImageLoader. This might return a
|
# will use the special zip_loader in ImageLoader. This might return a
|
||||||
# sequence of images contained in the zip.
|
# sequence of images contained in the zip.
|
||||||
|
|
Loading…
Reference in New Issue