Issue Task Closed

#17626JS-function checkSubmit should not use eval

Mads Brunn 09/24/07, 13:25 updated 10/21/17, 17:44

Description

The checkSubmit function in typo3/jsfunc.tbe_editor.js (used in backend forms) is in IMHO not correctly implemented.

The lines 260-264 checks if any user-defined javascript (registered with t3lib_tceforms->additionalJS_submit) should be evaluated before the form is submitted.

But it uses the eval-function to execute the javascript and this means that you cannot abort the submit in your own javascript-code (using “return false;”) .

(issue imported from #M6392)

Reviews 1