Opened 5 years ago

Last modified 5 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>&lt;?</title>

. That is fine but during the load process this title is messed up and we get the following weird title tag:

>&lt;title data-cke-title=&quot;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:

  1. Go to DEMO page (I used IE11) and launch full featured page.
  2. clear the content and switch to source view
  3. 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>&lt;?</title>
</head>
<body>
</body>
</html>

  1. 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().

Change History (1)

comment:1 Changed 5 years ago by Jakub Ś

Status: newconfirmed
Version: 4.4.23.5.4

Problem can be reproduced from CKEditor 3.5.4 rev. [6761]. Before this revision editor was hanging.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy