X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/9266ec66386f2b41ea0de3fad84a714fd78c932d..fa014d88919516a9763a6a9ab0c620ef102f04e4:/src/shpub/Command/AbstractProps.php diff --git a/src/shpub/Command/AbstractProps.php b/src/shpub/Command/AbstractProps.php index 7707ea9..e186819 100644 --- a/src/shpub/Command/AbstractProps.php +++ b/src/shpub/Command/AbstractProps.php @@ -3,6 +3,10 @@ namespace shpub; /** * Abstract command class that handles generic properties + * + * @author Christian Weiske + * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 + * @link http://cweiske.de/shpub.htm */ class Command_AbstractProps { @@ -215,8 +219,9 @@ class Command_AbstractProps foreach ($files as $filePath) { if (strpos($filePath, '://') !== false) { //url + $urlPath = parse_url($filePath, PHP_URL_PATH); $mte = new \MIME_Type_Extension(); - $mimetype = $mte->getMIMEType($filePath); + $mimetype = $mte->getMIMEType($urlPath); $media = \MIME_Type::getMedia($mimetype); if (!isset($urlList[$media])) { Log::err('File type not allowed: ' . $mimetype);