Project

General

Profile

Actions

Bug #17350

closed

Javascript mailform validation doesn't check fields of type 'file'

Added by Loek Hilgersom over 17 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
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

5726.patch (218 Bytes) 5726.patch Administrator Admin, 2007-06-04 21:34
Actions #1

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

Also available in: Atom PDF