Browse Source

Allow URL import of photos containing a question mark

Tobias Reich 8 years ago
parent
commit
fbab70f244
1 changed files with 1 additions and 0 deletions
  1. 1 0
      php/helpers/getExtension.php

+ 1 - 0
php/helpers/getExtension.php

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