update wami record document security

skala
Juan Carlos Raña 14 years ago
parent a611b87389
commit f0ec1cec5a
  1. 10
      main/inc/lib/wami-recorder/record_document.php

@ -43,15 +43,7 @@ if($ext!= 'wav'){
die(); die();
} }
/* //Do not use here check Fileinfo method because return: application/x-empty
//Security verify that the file is audio
$headers = get_headers($content, 1);
$content_type = explode("/", $headers['Content-Type']);
if ($content_type[0] != "audio"){
echo "Invalid file type";
exit;
}
*/
$dirBaseDocuments = api_get_path(SYS_COURSE_PATH).$_course['path'].'/document'; $dirBaseDocuments = api_get_path(SYS_COURSE_PATH).$_course['path'].'/document';
$saveDir=$dirBaseDocuments.$wamidir; $saveDir=$dirBaseDocuments.$wamidir;

Loading…
Cancel
Save