Allow URL import of photos containing a question mark
This commit is contained in:
parent
f1d6baff6c
commit
fbab70f244
@ -14,6 +14,7 @@ function getExtension($filename, $isURI = false) {
|
|||||||
// Special cases
|
// Special cases
|
||||||
// https://github.com/electerious/Lychee/issues/482
|
// https://github.com/electerious/Lychee/issues/482
|
||||||
list($extension) = explode(':', $extension, 2);
|
list($extension) = explode(':', $extension, 2);
|
||||||
|
list($extension) = explode('?', $extension, 2);
|
||||||
|
|
||||||
if (empty($extension)===false) $extension = '.' . $extension;
|
if (empty($extension)===false) $extension = '.' . $extension;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user