Actions
Bug #17350
closedJavascript mailform validation doesn't check fields of type 'file'
Start date:
2007-06-01
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If you set a file-upload field in the standard Typo3 mailform as required, you can still send the form even if no file is selected - the check on file-input fields is missing.
Solution:
add 1 line between line 74 and 75 in t3lib/jsfunc.validateform.js
switch(type) {
case "text":
case "textarea":
case "file": // LH: add this line to check file fields
value = fObj.value;
break;
This is solution is the same for v4.1.1 and 4.0.6
(issue imported from #M5726)
Files
Updated by Peter Foerger over 17 years ago
+1 from my side. But as long as there isn't any patch file in place every core member will ignore. So I've attached this pretty simple one.
cheers
Peter
Actions