Skip to content

Commit e04b7af

Browse files
Merge pull request #1101 from TechnologyEnhancedLearning/Develop/Fixes/TD-3727-FileUpload-Vulnerability
TD-3727- Unrestricted file upload- SIT comments
2 parents a24fce8 + f8f4d9a commit e04b7af

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/Content.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@
401401
v-model.trim="currentPassword"
402402
placeholder="Current password"
403403
@blur="$v.currentPassword.$touch()"
404-
v-bind:class="{ 'input-validation-error': $v.currentPassword.$error}">
404+
v-bind:class="{ 'input-validation-error': $v.currentPassword.$error}"
405+
@keydown.enter="submitPassword">
405406
</div>
406407

407408
<div class="row" v-if="showError">

LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute/fileUpload.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
}
254254
}
255255
else {
256-
this.$emit('childfileuploaderror', FileErrorTypeEnum.Custom, 'There was a problem uploading this file to the Learning Hub. The .zip file you tried to upload was empty.');
256+
this.$emit('childfileuploaderror', FileErrorTypeEnum.InvalidType, 'We do not support this file type on the Learning Hub.');
257257
}
258258
}
259259
this.uploading = false;
@@ -263,7 +263,7 @@
263263
this.$emit('childfileuploaderror', FileErrorTypeEnum.Custom, 'There was a problem uploading this file to the Learning Hub. Please try again and if it still does not upload, contact the support team.');
264264
}
265265
else {
266-
this.$emit('childfileuploaderror', FileErrorTypeEnum.Custom, 'There was a problem uploading this file to the Learning Hub. The .zip file you tried to upload was empty.');
266+
this.$emit('childfileuploaderror', FileErrorTypeEnum.InvalidType, 'We do not support this file type on the Learning Hub.');
267267
}
268268
self.processing = false;
269269
self.uploading = false;

0 commit comments

Comments
 (0)