﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
782	ProtectedSource: Stack overflow at line 23	amathur347@…		"This error has been reported atleast 20 times, but
all tickets have been closed without resolution. I
could not find a way to reopen it, so I am creating a
new one.

Basically the issue is this -

I am getting a stack overflow error when I submit
content that is a little complicated, with tables and
images. In Firefox, I get a error : Too much
recursion in line 22. I have traced the error to the
following lines in fck_startup.js


{{{
var FCKConfig=FCK.Config=new Object();if
(document.location.protocol=='file:')
{FCKConfig.BasePath=unescape
(document.location.pathname.substr
(1));FCKConfig.BasePath=FCKConfig.BasePath.replace(/
\\/gi, '/');FCKConfig.BasePath='file://'+FCKConfig.Bas
ePath.substring(0,FCKConfig.BasePath.lastIndexOf('/')
+1);}else
{FCKConfig.BasePath=document.location.pathname.substri
ng(0,document.location.pathname.lastIndexOf('/')
+1);FCKConfig.FullBasePath=document.location.protocol+
'//'+document.location.host+FCKConfig.BasePath;};FCKCo
nfig.EditorPath=FCKConfig.BasePath.replace(/editor\/
$/,'');try
{FCKConfig.ScreenWidth=screen.width;FCKConfig.ScreenHe
ight=screen.height;}catch (e)
{FCKConfig.ScreenWidth=800;FCKConfig.ScreenHeight=600;
};FCKConfig.ProcessHiddenField=function()
{this.PageConfig=new Object();var
A=window.parent.document.getElementById
(FCK.Name+'___Config');if (!A) return;var
B=A.value.split('&');for (var i=0;i<B.length;i++){if
(B[i].length==0) continue;var C=B[i].split('=');var
D=unescape(C[0]);var E=unescape(C[1]);if
(D=='CustomConfigurationsPath') FCKConfig[D]=E;else
if (E.toLowerCase()==""true"") this.PageConfig[D]
=true;else if (E.toLowerCase()==""false"")
this.PageConfig[D]=false;else if (!isNaN(E))
this.PageConfig[D]=parseInt(E);else this.PageConfig[D]
=E;};};FCKConfig.LoadPageConfig=function(){for (var A
in this.PageConfig) FCKConfig[A]=this.PageConfig
[A];};FCKConfig.ToolbarSets=new Object
();FCKConfig.Plugins=new Object
();FCKConfig.Plugins.Items=new Array
();FCKConfig.Plugins.Add=function(A,B,C)
{FCKConfig.Plugins.Items.addItem
([A,B,C]);};FCKConfig.ProtectedSource=new Object
();FCKConfig.ProtectedSource.RegexEntries=new Array
();FCKConfig.ProtectedSource.Add=function(A)
{this.RegexEntries.addItem
(A);};FCKConfig.ProtectedSource.Protect=function(A)
{function _Replace(protectedSource){var
B=FCKTempBin.AddElement(protectedSource);return '<!--
{PS..'+B+'}-->';};for (var
i=0;i<this.RegexEntries.length;i++){A=A.replace
(this.RegexEntries[i],_Replace);};return
A;};FCKConfig.ProtectedSource.Revert=function(A,B)
{function _Replace(m,opener,index){var C=B?
FCKTempBin.RemoveElement(index):FCKTempBin.Elements
[index];return FCKConfig.ProtectedSource.Revert
(C,B);};return A.replace(/(<|&lt;)!--\{PS..(\d+)\}--
(>|&gt;)/g,_Replace);};FCKConfig.ProtectedSource.Add
(/<!--[\s\S]*?-->/g);
var FCKeditorAPI;function FCKeditorAPI_GetInstance
(instanceName){return this.__Instances
[instanceName];};if (!window.parent.FCKeditorAPI)
{FCKeditorAPI=window.parent.FCKeditorAPI=new Object
();FCKeditorAPI.__Instances=new Object
();FCKeditorAPI.Version='2.2';FCKeditorAPI.GetInstance
=FCKeditorAPI_GetInstance;}else
FCKeditorAPI=window.parent.FCKeditorAPI;FCKeditorAPI._
_Instances[FCK.Name]=FCK;
}}}
----
Moved from SF:[[BR]]
http://sourceforge.net/tracker/index.php?func=detail&aid=1570151&group_id=75348&atid=543653"	Bug	closed	Normal		General		duplicate	SF	
