Fix CS
[shpub.git] / src / shpub / Command / AbstractProps.php
index 7707ea9d22103f0d7cc32620745b2c729e2aaffd..e186819f49b26a907660a50854f87c028f9ee06f 100644 (file)
@@ -3,6 +3,10 @@ namespace shpub;
 
 /**
  * Abstract command class that handles generic properties
+ *
+ * @author  Christian Weiske <cweiske@cweiske.de>
+ * @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);