[SPIP] ~maj v3.2.9-->v3.2.11
[lhc/web/www.git] / www / plugins-dist / medias / lib / getid3 / module.audio.la.php
index 3fee9d3..27a4679 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_la extends getid3_handler
@@ -215,7 +218,6 @@ class getid3_la extends getid3_handler
                                        $this->error('Not a LA (Lossless-Audio) file');
                                }
                                return false;
-                               break;
                }
 
                $info['audio']['channels']    = $info['la']['channels'];