Closed (fixed)
Project:
CKEditor Link
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2012 at 23:53 UTC
Updated:
5 Jun 2018 at 23:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
msypes commentedHere's the patch
Comment #2
msypes commentedSorry. forgot to correct some local code in the patch before uploading
Comment #3
anrikun commentedThis is not a bug but by design.
What kind of paths are you using that contain spaces?
Comment #4
anrikun commentedComment #5
msypes commentedThis was from a copy/paste of an internal file link from admin > content > file.
Some of those files have spaces in the names, like My Great Word File.doc, or Annual Report.pdf
The JS was able to get the correct path to the file, but returned the invalid path message. By adding the allowance for spaces, I was able to insert a functioning link to such a file.
I don't like spaces in pathnames any more than the next guy, but there's no guarantee that a casual user won't upload such a file.
Comment #6
hass commentedPaths with spaces that file_create_url creates contain encoded spaces (%20). There is one open core bug in D6 to get this invalid links fixed.
Comment #7
bklineThis is a showstopper for the use of this module. I really don't want to rewrite our software to use another module, but unless this is fixed we'll have to (or maintain our own fork of this one, which is also undesireable). As the OP said, few developers will intentionally create file names with spaces, but most users do it all the time. You've been given a patch which works perfectly. Let's apply it!
Comment #8
anrikun commentedComment #9
bklineI have tested the patch. Can we get it applied?
Comment #10
bklineComment #12
anrikun commentedAll right, let's allow spaces but not all white spaces.
Anyway, patch at #2 was incomplete.
I've committed a complete one.
Comment #13
anrikun commentedComment #14
bklineThanks!
Comment #16
bklineAny chance this could get released as part of the "preferred version" (as reported by
/admin/reports/updates)? It's been over two years.