Ticket #2378 (assigned Bug)

Opened 5 months ago

Last modified 4 months ago

Search for better options than EncodeConfig

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

Description

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

Changed 5 months ago by wwalc

  • owner set to wwalc
  • status changed from new to assigned

Changed 5 months 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.

Changed 5 months 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).

Changed 5 months 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.

Changed 5 months 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="http://127.0.0.1/sub1/%23%20sub2/sub3/sample.png">
instead of:
<img src="http://127.0.0.1/sub1/# 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.

Changed 4 months ago by w.olchawa

  • keywords Confirmed added
Note: See TracTickets for help on using tickets.