Opened 12 years ago
Closed 12 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&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.
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 & 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