Skip to content

Commit a63e03e

Browse files
committed
Security: Remove possible XSS when showing file name selected
1 parent 78d9462 commit a63e03e

File tree

1 file changed

+1
-1
lines changed
  • main/inc/lib/pear/HTML/QuickForm

1 file changed

+1
-1
lines changed

main/inc/lib/pear/HTML/QuickForm/file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ public function getTemplate($layout)
460460
if (this.files[0]) {
461461
fileName = this.files[0].name;
462462
}
463-
the_return.innerHTML = fileName;
463+
the_return.textContent = fileName;
464464
});
465465
</script>
466466
';

0 commit comments

Comments
 (0)