Commit f7aed5cb by Attiya Ishaque Committed by GitHub

Merge pull request #14428 from edx/TNL-6419-change-in-code

TNL-6419 Fix in file-checking code in Xmodule.
parents 43ffe63f 0869df22
......@@ -509,7 +509,7 @@
ref = element.files;
for (loopI = 0, loopLen = ref.length; loopI < loopLen; loopI++) {
file = ref[loopI];
if (allowedFiles.length !== 0 && indexOfHelper.call(allowedFiles, file.name < 0)) {
if (allowedFiles.length !== 0 && indexOfHelper.call(allowedFiles, file.name) < 0) {
unallowedFileSubmitted = true;
errors.push(edx.StringUtils.interpolate(
gettext('You submitted {filename}; only {allowedFiles} are allowed.'), {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment