Allow URL import of photos containing a question mark

This commit is contained in:
Tobias Reich 2016-03-18 22:17:41 +01:00
parent f1d6baff6c
commit fbab70f244

View File

@ -14,6 +14,7 @@ function getExtension($filename, $isURI = false) {
// Special cases
// https://github.com/electerious/Lychee/issues/482
list($extension) = explode(':', $extension, 2);
list($extension) = explode('?', $extension, 2);
if (empty($extension)===false) $extension = '.' . $extension;