Allow URL import of photos containing a question mark

pull/493/head
Tobias Reich 8 years ago
parent f1d6baff6c
commit fbab70f244

@ -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;

Loading…
Cancel
Save