Opened 11 years ago
Last modified 11 years ago
#12194 confirmed Bug
Title tag is messed up using special characters.
Reported by: | Zoltan Koszegi | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.5.4 |
Keywords: | Oracle | Cc: |
Description
We have a situation when our webpages name (this is actually the <title> tag) are tested with special character sets. As a result (loading this page into CK) the title tag completely messed up and its content is moved under the body. The title we applied is this:
ÑÇôìë<?:"';.!@#$%^&*\)/
I could narrow down what character sequence causes the issue. So this is it:
<?
So, whenever we apply this <? as a title it will be encoded and saved as
<title><?</title>
. That is fine but during the load process this title is messed up and we get the following weird title tag:
><title data-cke-title="Rich Text Editor, Textarea1, Press ALT 0 for help
Here, there is no normal opening <title> tag and the closing </title> is missing.
Fortunately I can reproduce this kind of behavior in the DEMO. STR:
- Go to DEMO page (I used IE11) and launch full featured page.
- clear the content and switch to source view
- paste the following string into it: (note, the <title> contains the encoded <? characters and browsers can display this title with no issue at all)
<html> <head> <title><?</title> </head> <body> </body> </html>
- switch back to wysiwyg mode and the page is not empty (it should be). It contains the <? characters. This is because the <title> tag was broke up and its content moved to the body. So, something odd happens during the setData().
Problem can be reproduced from CKEditor 3.5.4 rev. [6761]. Before this revision editor was hanging.