Opened 9 years ago

Last modified 7 years ago

#2378 assigned Bug

Search for better options than EncodeConfig

Reported by: wwalc Owned by: wwalc
Priority: Normal Milestone:
Component: Server : PHP Version:
Keywords: Confirmed Cc:


At this moment it seems not very intuitive hot to assign SkinPath in PHP. To achieve path pointing to:

"/sub1/# CMS/sub2/"

ones have to assign:

"/sub1/%2523 CMS/sub2/"

...there must be an easier way to do it.

Change History (8)

comment:1 Changed 9 years ago by wwalc

  • Owner set to wwalc
  • Status changed from new to assigned

comment:2 Changed 9 years ago by alfonsoml

The # sign is a special character in urls, I'm not sure that the proposed url is a valid one for a file path.

comment:3 Changed 9 years ago by wwalc

I agree that using such urls is quite risky, but it's possible to create directories with "#" character so maybe it's worth to check this.

It seems that floating dialogs also doesn't work with "#" in a path (this problem and the original issue has been reported by saul11 on #fckeditor channel).

comment:4 Changed 9 years ago by alfonsoml

The fact that you can create a directory with such sign doesn't mean that it's a valid URL.

Everything after the # is the "hash", and it isn't sent back to the server. Try loading a file directly from such a directory and you'll see that you get back the default document for that directory, not the one that you asked.

comment:5 Changed 9 years ago by wwalc

Yes, I understand that, but... don't you think, that if I have a folder with "#" in it's name, I should be able to use it?

It's possible to access files from such folder (but first you change "#" into %23):

<img src="">
instead of:
<img src=" sub2/sub3/sample.png">

I guess that there are not too many people that use "#" in their folder names, I've added this just to remember to check that all other special characters that may cause problems are also translated correctly.

comment:6 Changed 8 years ago by w.olchawa

  • Keywords Confirmed added

comment:7 Changed 8 years ago by fredck

  • Milestone changed from CKEditor 3.0 to CKEditor 3.x

comment:8 Changed 7 years ago by fredck

  • Milestone CKEditor 3.x deleted

Milestone CKEditor 3.x deleted

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