Opened 16 years ago

Last modified 11 years ago

#2552 confirmed Bug

PHP code on top of page

Reported by: Cees Owned by:
Priority: Normal Milestone:
Component: Core : Output Data Version: 3.0
Keywords: 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 (4)

comment:1 Changed 16 years ago by Alfonso Martínez de Lizarrondo

Keywords: php top removed
Milestone: FCKeditor 2.6.4
Version: FCKeditor 2.6.3FCKeditor 2.3.2

comment:2 Changed 16 years ago by Artur Formella

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>

comment:3 Changed 13 years ago by Krzysztof Studnik

Version: FCKeditor 2.3.23.0

Confirmed in CKE3.6.2Trunk

comment:4 Changed 11 years ago by Piotrek Koszuliński

Confirmed in CKEditor 4.2.

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