Allow "_" char in $type see BT#18371

pull/3766/head^2
Julio Montoya 5 years ago
parent 993b2f2e11
commit 5f39ba7c8d
  1. 2
      main/document/download_uploaded_files.php

@ -16,7 +16,7 @@ $courseInfo = api_get_course_info($courseCode);
if (empty($courseInfo)) {
$courseInfo = api_get_course_info();
}
$type = preg_replace("/[^a-zA-Z]+/", '', $type);
$type = preg_replace("/[^a-zA-Z_]+/", '', $type);
if (empty($courseInfo) || empty($type) || empty($file)) {
api_not_allowed(true);

Loading…
Cancel
Save