[SPIP] ~maj v3.2.9-->v3.2.11
[lhc/web/www.git] / www / plugins-dist / medias / lib / getid3 / module.audio.lpac.php
index 375ba20..f49e244 100644 (file)
@@ -14,6 +14,9 @@
 //                                                            ///
 /////////////////////////////////////////////////////////////////
 
+if (!defined('GETID3_INCLUDEPATH')) { // prevent path-exposing attacks that access modules directly on public webservers
+       exit;
+}
 getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.audio-video.riff.php', __FILE__, true);
 
 class getid3_lpac extends getid3_handler
@@ -80,7 +83,7 @@ class getid3_lpac extends getid3_handler
                }
 
                $getid3_temp = new getID3();
-               $getid3_temp->openfile($this->getid3->filename);
+               $getid3_temp->openfile($this->getid3->filename, $this->getid3->info['filesize'], $this->getid3->fp);
                $getid3_temp->info = $info;
                $getid3_riff = new getid3_riff($getid3_temp);
                $getid3_riff->Analyze();