Fixed bug: Missing try/catch for actionChecks in TBE_EDITOR
authorOliver Hader <oliver.hader@typo3.org>
Wed, 16 Jan 2008 15:16:46 +0000 (15:16 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 16 Jan 2008 15:16:46 +0000 (15:16 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2917 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/jsfunc.tbe_editor.js

index 15081db..012d042 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-16  Oliver Hader  <oh@inpublica.de>
+
+       * (minor) Fixed bug: Missing try/catch for actionChecks in TBE_EDITOR
+
 2008-01-16  Ingo Renner  <ingo@typo3.org>
 
        * Release of TYPO3 4.2.0alpha3
index 4fc1c79..aab24ac 100755 (executable)
@@ -1,7 +1,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2006 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -404,7 +404,9 @@ var TBE_EDITOR = {
                // $this->additionalJS_submit:
                if (TBE_EDITOR.actionChecks && TBE_EDITOR.actionChecks.submit) {
                        for (funcIndex=0, funcMax=TBE_EDITOR.actionChecks.submit.length; funcIndex<funcMax; funcIndex++) {
-                               eval(TBE_EDITOR.actionChecks.submit[funcIndex]);
+                               try {
+                                       eval(TBE_EDITOR.actionChecks.submit[funcIndex]);
+                               } catch(error) {}
                        }
                }