Opened 11 years ago

Closed 11 years ago

#10542 closed Bug (duplicate)

blanks

Reported by: Jerrold Siegel Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

In the Link window, when I type say

boy&girl.html

I see

<a href="http://boy&amp;girl.html">

in the Source which is the behavior I might expect but when I type

boy girl

I see

<a href="http://boy girl.html">the Source. I would have expected something like <a href="http://boy%20girl.html">

or

<a href="http://boy+girl.html">

I notice in the preview all is well On the other hand, when I use the editor to generate code I get the behavior I see in the source.

Change History (1)

comment:1 Changed 11 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed

Ampersand character is a special case which must always be encoded. You may disable this encoding with below configuration option http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.forceSimpleAmpersand but you should not do it as &amp; does not break URL.

As for the blanks - yes URL should be encoded and yes browser do that in background if it isn't done but such encoding should not be done on client side but on server-side. Please see http://dev.ckeditor.com/ticket/8806

DUP of #8806

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