Log in or register to post comments
Last post
robjanssen's picture
Joined: 22/08/2011
Posts: 9
Thumbnail error using single quote CKFinder ASP.NET 2.0.2.1
When I create a folder with a single quote in it. The thumbnails are not created and no image is shown after uploading an image.
Can this be solved?
rvdh's picture
Joined: 26/01/2008
Posts: 9
Re: Thumbnail error using single quote CKFinder ASP.NET 2.0.
I have exact the same issue with the classic ASP version.
Folders, but also filenames with a apostrophe in it's name seem to cause CKfinder not to be able to generate and display thumbnails.

Example 1, apostrophe in foldername
Image

Example 2, apostrophe in filename
Image

Example 3 (without apostrophe)
Image

In Dutch the apostrophe is quite commonly used in file and /or folder names because is represents the plural value of an item. Would love to see this fixed.
alfonsoml's picture
Joined: 31/12/2006
Posts: 3743
Re: Thumbnail error using single quote CKFinder ASP.NET 2.0.
Thank you.
It should be fixed for the next release (the problem affects all the connectors, it's strange that no one else has reported it before)
robjanssen's picture
Joined: 22/08/2011
Posts: 9
Re: Thumbnail error using single quote CKFinder ASP.NET 2.0.
alfonsoml wrote:Thank you.
It should be fixed for the next release (the problem affects all the connectors, it's strange that no one else has reported it before)


And when will the next release be released?

Is there a fix for the meantime?
Anna's picture
Joined: 14/12/2010
Posts: 1490
Re: Thumbnail error using single quote CKFinder ASP.NET 2.0.
CKFinder 2.1 is now in the testing phase and will be released soon.

Documentation Manager, CKSource

See CKEditor 4.x docs, CKEditor 3.x docs, CKFinder docs for help. CKEditor general FAQ is useful, too!
If you think you found a bug in CKEditor, read this!

fenglang's picture
Joined: 27/08/2011
Posts: 1
Re: Thumbnail error using single quote CKFinder ASP.NET 2.0.
very good
wiktor's picture
Joined: 16/07/2007
Posts: 1647
Re: Thumbnail error using single quote CKFinder ASP.NET 2.0.
Could you check the following version: CKFinder 2.1 - development snapshot and confirm that the issue is gone?

Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+

codewaggle's picture
Joined: 29/06/2011
Posts: 44
Re: Thumbnail error using single quote CKFinder ASP.NET 2.0.
Hi Wiktor,

The 2.1 dev snapshot fixed the problem for me, thumbnails are being generated even with apostrophe's in the path.

Using PHP Version: 5.2.10
CKEditor Version: 3.6.1
GD Version: bundled (2.0.34 compatible)

The multi file upload feature is great!

Please post to this thread when 2.1 is released.

Be Well,
Joe
Anna's picture
Joined: 14/12/2010
Posts: 1490
Re: Thumbnail error using single quote CKFinder ASP.NET 2.0.
CKFinder 2.1 is now released and available for download.

See the forum post and the announcement page for more details.

Documentation Manager, CKSource

See CKEditor 4.x docs, CKEditor 3.x docs, CKFinder docs for help. CKEditor general FAQ is useful, too!
If you think you found a bug in CKEditor, read this!

henkjan's picture
Joined: 01/02/2010
Posts: 4
Re: Thumbnail error using single quote CKFinder ASP.NET 2.0.
This bug still exists in version 2.51!

File: js/browser/files.js

I replaced this line
'<div class="thumb" style="background-image:url(\'' + icon + '\')" ></div>' +

by this one

'<div class="thumb" style="background-image:url(\'' + icon.replace(/\'/g,'\\\'') + '\')" ></div>' +
wiktor's picture
Joined: 16/07/2007
Posts: 1647
Re: Thumbnail error using single quote CKFinder ASP.NET 2.0.
Sorry but there is no such version "2.51" and CKFinder does not come with file named "js/browser/files.js"... :roll:

To get rid of the error use CKFinder, not a clone ;)

Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+