Changeset 3773
- Timestamp:
- 02/12/07 01:58:31 (6 years ago)
- Files:
-
- modules/branches/2.2/recordings/functions.inc.php (modified) (2 diffs)
- modules/branches/2.2/recordings/page.recordings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.2/recordings/functions.inc.php
r3586 r3773 105 105 // Check to make sure we can actually read the file if it has an extension (if it doesn't, 106 106 // it was put here by system recordings, so we know it's there. 107 if (preg_match("/\.(au|g723|g723sf|g726-\d\d|g729|gsm|h263|ilbc| ogg|pcm|[au]law|[au]l|mu|sln|raw|vox|WAV|wav|wav49)$/", $filename)) {107 if (preg_match("/\.(au|g723|g723sf|g726-\d\d|g729|gsm|h263|ilbc|mp3|ogg|pcm|[au]law|[au]l|mu|sln|raw|vox|WAV|wav|wav49)$/", $filename)) { 108 108 if (!is_readable($recordings_astsnd_path.$filename)) { 109 109 print "<p>Unable to add ".$recordings_astsnd_path.$filename." - Can not read file!</p>"; 110 110 return false; 111 111 } 112 $fname = preg_replace("/\.(au|g723|g723sf|g726-\d\d|g729|gsm|h263|ilbc| ogg|pcm|[au]law|[au]l|mu|sln|raw|vox|WAV|wav|wav49)$/", "", $filename);112 $fname = preg_replace("/\.(au|g723|g723sf|g726-\d\d|g729|gsm|h263|ilbc|mp3|ogg|pcm|[au]law|[au]l|mu|sln|raw|vox|WAV|wav|wav49)$/", "", $filename); 113 113 114 114 } else { … … 218 218 } 219 219 // Strip off every possible file extension 220 $flist = preg_replace("/\.(au|g723|g723sf|g726-\d\d|g729|gsm|h263|ilbc| ogg|pcm|[au]law|[au]l|mu|sln|raw|vox|WAV|wav|wav49)$/", "", $files);220 $flist = preg_replace("/\.(au|g723|g723sf|g726-\d\d|g729|gsm|h263|ilbc|mp3|ogg|pcm|[au]law|[au]l|mu|sln|raw|vox|WAV|wav|wav49)$/", "", $files); 221 221 sort($flist); 222 222 return array_unique($flist); modules/branches/2.2/recordings/page.recordings.php
r3606 r3773 84 84 $filename=$arr['filename']; 85 85 // Check all possibilities of uploaded file types. 86 $valid = Array("au","g723","g723sf","g729","gsm","h263","ilbc"," ogg","pcm","alaw","ulaw","al","ul","mu","sln","raw","vox","WAV","wav","wav49");86 $valid = Array("au","g723","g723sf","g729","gsm","h263","ilbc","mp3","ogg","pcm","alaw","ulaw","al","ul","mu","sln","raw","vox","WAV","wav","wav49"); 87 87 $fileexists = false; 88 88 if (strpos($filename, '&') === false) {
