[SPIP] ~maj v3.2.9-->v3.2.11
[lhc/web/www.git] / www / plugins-dist / medias / lib / getid3 / module.audio.flac.php
index 4edf587..1cea436 100644 (file)
@@ -14,7 +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.ogg.php', __FILE__, true);
 
 /**
@@ -178,7 +180,7 @@ class getid3_flac extends getid3_handler
                if (isset($info['flac']['STREAMINFO']['audio_signature'])) {
 
                        if ($info['flac']['STREAMINFO']['audio_signature'] === str_repeat("\x00", 16)) {
-                $this->warning('FLAC STREAMINFO.audio_signature is null (known issue with libOggFLAC)');
+                               $this->warning('FLAC STREAMINFO.audio_signature is null (known issue with libOggFLAC)');
                        }
                        else {
                                $info['md5_data_source'] = '';