Removed unnecessary special case for question mark in extension #482

This commit is contained in:
Tobias Reich 2016-03-19 15:46:07 +01:00
parent b5c000ee72
commit e1056d1fc6

View File

@ -14,7 +14,6 @@ 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;