Ticket #2552 (new Bug)

Opened 2 months ago

Last modified 8 weeks ago

PHP code on top of page

Reported by: connectcase Owned by:
Priority: Normal Milestone:
Component: Core : Output Data Version: FCKeditor 2.3.2
Keywords: Confirmed Cc:

Description

Apologies if this is a dup, but I couldn't find anything similar when having searched.

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

lets me add PHP code, but only in the body-tag. PHP on top of the page (as "session_start()" should be) will be removed. This is according to XHTML rules, but means that no PHP developper needing the use of PHP sessions will be able to fully apply FCK.

I installed the latest nightly to test and have Fullpage=true.

Change History

Changed 2 months ago by alfonsoml

  • keywords php top removed
  • version changed from FCKeditor 2.6.3 to FCKeditor 2.3.2
  • milestone FCKeditor 2.6.4 deleted

Changed 8 weeks ago by arczi

  • keywords Confirmed added

I confirm. Code:

<?	aaaaaaa();	?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><?	bbbbbbb();	?>
<html><?	ccccccc();	?>
    <head><?	ddddddd();	?>
        <title>Full Page Test</title><?	eeeeeee();	?>
    </head>
    <body><?	fffffff();	?>
        <p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>
        <?	ggggggg();	?>
    </body><?	hhhhhhh();	?>
</html>
<?	iiiiiiii();	?>

is replaced by the editor with:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <?	aaaaaaa();	?><?	bbbbbbb();	?> <?	ccccccc();	?>     <?	ddddddd();	?>
        <title>Full Page Test</title>
        <?	eeeeeee();	?>
    </head>
    <body>
        <?	fffffff();	?>
        <p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>
        <?	ggggggg();	?>
    </body>
</html>
Note: See TracTickets for help on using tickets.