Opened 17 years ago
Last modified 12 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 17 years ago by
| Keywords: | php top removed |
|---|---|
| Milestone: | FCKeditor 2.6.4 |
| Version: | FCKeditor 2.6.3 → FCKeditor 2.3.2 |
comment:2 Changed 17 years ago by
| 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>