Closed (fixed)
Project:
jQuery Lightbox
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2007 at 19:15 UTC
Updated:
28 Feb 2008 at 05:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
sunNo, spaces in filenames are not allowed. You might use Transliterate filenames module to ensure proper filenames.
For further information see http://drupal.org/node/43505
Comment #2
snelson commentedWell, its up to you...
I patched the code for my install because Imagefield lets filenames right on through (they are allowed). In all other places I checked, the file is displayed fine, except for in the lightbox. In the places where it is displayed, the spaces are replaced with %20, but in lightbox, they are replaced with +.
Now, if I'm naming a file for web myself, I know better than to use spaces in the filename. But for my client, who doesn't know better, if the form lets the file through, then it should work everywhere that file is used on the site.
It really just needs a urlencode, which is what it gets through file_create_url(), a necessary thing to do anyway, in my opinion.
Comment #3
jmav commentedSun wouldn't be better to add this functionality, so module could be more flexible.
Please do include function file_create_url in next version, it wont hurt the module.
I must say that I did change from thickbox to this module because i believe that this module is better, don't make me change my mind.
Comment #4
sunPlease test attached patch.
Comment #5
Wouter Van den Bosch commentedHad the very same issue and would like to confirm that this patch fixed my problem.
Cheers !
Comment #6
sunComment #7
sunThanks, committed!
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.