[SPIP] ~maj v3.2.9-->v3.2.11
[lhc/web/www.git] / www / plugins-dist / medias / lib / getid3 / module.audio.voc.php
index 4483158..f765719 100644 (file)
@@ -14,6 +14,9 @@
 //                                                            ///
 /////////////////////////////////////////////////////////////////
 
+if (!defined('GETID3_INCLUDEPATH')) { // prevent path-exposing attacks that access modules directly on public webservers
+       exit;
+}
 
 class getid3_voc extends getid3_handler
 {
@@ -61,7 +64,7 @@ class getid3_voc extends getid3_handler
 
                        $BlockOffset    = $this->ftell();
                        $BlockData      = $this->fread(4);
-                       $BlockType      = ord($BlockData{0});
+                       $BlockType      = ord($BlockData[0]);
                        $BlockSize      = getid3_lib::LittleEndian2Int(substr($BlockData, 1, 3));
                        $ThisBlock      = array();