Opened 14 years ago

Last modified 11 years ago

#7826 closed Bug

Source protection dosen't work for textarea tag — at Version 3

Reported by: maza Owned by:
Priority: Normal Milestone:
Component: Core : Output Data Version: 3.5.2
Keywords: Cc: spotlighter@…

Description (last modified by Jakub Ś)

Set in config.js config.protectedSource.push( /<\?[\s\S]*?\?>/g ); // PHP code

If You use this code:

<textarea name="f[desc2]" cols="45" rows="10"><?php echo $oFormat->htmlToEnt($_POST['f']['desc2'], false); ?></textarea>

{cke_protected_x} dosen't apper in HTML mode. Source view shows:

<textarea cols="45" name="f[desc2]" rows="10">&lt;!--{cke_protected}%3C%3Fphp%20echo%20%24oFormat-%3EhtmlToEnt(%24_POST%5B'f'%5D%5B'desc2'%5D%2C%20false)%3B%20%3F%3E--&gt;</textarea>

Change History (3)

comment:1 Changed 14 years ago by maza

Cc: spotlighter@… added

comment:2 Changed 14 years ago by Jakub Ś

Keywords: source protection textarea removed
Status: newconfirmed
Version: 3.5.33.5.2

Works fine in HTML attributes, tags like form, p or span but it doesn't work inside textarea.

I have set 3.5.2 version because according to #4475 this is where attributes were fixed.

comment:3 Changed 12 years ago by Jakub Ś

Description: modified (diff)
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