GetID3 used now deprecated functions like ereg and set_magic_quotes_runtime. Convert ereg to preg_match and throw an error if magic quotes are enabled on PHP >= 5.3.
git-svn-id: http://kusabax.cultnet.net/svn/repo/stable@216 73d99b7e-4f53-4972-b7b7-2ecd3c4d89ee
This commit is contained in:
1 parent
6afde4b284
commit
0bdb656e9a
4 files changed
+22
-17
No files matched your search
@@ -1548,7 +1548,7 @@ class getid3_mp3
|
||||
if ($pct_data_scanned > 0) {
|
||||
$ThisFileInfo['warning'][] = 'too many MPEG audio frames to scan, only scanned '.$frames_scanned.' frames in '.$max_scan_segments.' segments ('.number_format($pct_data_scanned * 100, 1).'% of file) and extrapolated distribution, playtime and bitrate may be incorrect.';
|
||||
foreach ($ThisFileInfo['mpeg']['audio'] as $key1 => $value1) {
|
||||
if (!eregi('_distribution$', $key1)) {
|
||||
if (!preg_match('/_distribution$/i', $key1)) {
|
||||
continue;
|
||||
}
|
||||
foreach ($value1 as $key2 => $value2) {
|
||||
|
||||
Reference in new issue
Block a user