Skip to content

Commit 5f39ba7

Browse files
committed
Allow "_" char in $type see BT#18371
1 parent 993b2f2 commit 5f39ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: main/document/download_uploaded_files.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
if (empty($courseInfo)) {
1717
$courseInfo = api_get_course_info();
1818
}
19-
$type = preg_replace("/[^a-zA-Z]+/", '', $type);
19+
$type = preg_replace("/[^a-zA-Z_]+/", '', $type);
2020

2121
if (empty($courseInfo) || empty($type) || empty($file)) {
2222
api_not_allowed(true);

0 commit comments

Comments
 (0)