Opened 17 years ago

Closed 17 years ago

Last modified 14 years ago

#689 closed Bug (duplicate)

ProtectedSource: "Stack overflow at line 23"

Reported by: anonymous Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: SF Cc: Frederico Caldeira Knabben, springub@…, j_o_r_i_x@…, manu456@…

Description

Hi

I am consistently getting "stack overflow at line 23" error in java script when i try to submit or view source of certain html files.

Earlier i thought that the problem was with large files but now i have noticed that all the files that generate this error have comments in them and of the form "<!--{PS..0}-->" , "<!--{PS..1}-->" etc. we have a lot such files in our system.

The editor works fine for the same files once the comments are removed.

Can you please try to identify what is the cause of this problem.

Thanks


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1380192&group_id=75348&atid=543653

Change History (2)

comment:1 Changed 17 years ago by Martin Kou

Cc: Frederico Caldeira Knabben springub@… j_o_r_i_x@… manu456@… added
Reporter: changed from Martin Kou to anonymous

Here is a code sample: http://walter-eucken-schule.de/code_sample_table.htm


Moved from SF. Original poster: springub

I'm experiencing the exact same problems, but no errors are raised; I just get <!--{PS..x}--> parts in my source where my comments and/or javascript used to be. The problem persists in Firefox 1.5.0.3 as well as Internet Explorer 6 SP2 (tested on multiple computers, all running Windows XP SP2 and/or Windows 2003 Webserver ed.)

Steps to reproduce:

  • Switch to Source view
  • Enter: <!-- This is a testcomment -->
  • Switch back to WYSIWYG mode
  • Switch back to source view again
  • voila: The comment got replaced by <!--{PS..0}-->

Including javascript blocks results in the same.

I'm using FCKEditor 2.2 along with PHP. XHTML is turned off in fckconfig.js

Thanks


Moved from SF. Original poster: j_o_r_i_x

Please attach to this report a minimal HTML source that gives you the problem. In this way we can easily reproduce, test and debug it.


Moved from SF. Original poster: fredck

just clarifying that the first two comments were added by the same person...


Moved from SF. Original poster: manu456

Ive realised that these comments are being generated by the editor itself.. there is a function ProtectedSource.Protect in fck_startup.js...

Please note i do not have any protected code in the html. and i have disabled the following line from the fckconfig.js

FCKConfig.ProtectedSource.Add( /<script[\s\S]*? \/script>/gi ;

still the protected code comments are being added to the htmls....


Moved from SF. Original poster: manu456

comment:2 Changed 17 years ago by Frederico Caldeira Knabben

Resolution: duplicate
Status: newclosed

DUP of #143

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy