Defect #38968
openImages not showing up when space(s) in filename
0%
Description
Hi,
i'm currently testing Redmine 5.0.5 which is an upgrade from 4.2.3
I notice that images containing spaces in the filename that we upload through CKEditor aren't displayed anymore.
Also the image selector shows the filename up until the space.
ie, an image called 'IMG_2023 Forest.png' will show up as 'IMG_2023' with then an 'image not available' cross in the thumbail for what should be the image.
How can i make it so that the spaces in the filename arent an issue anymore?
Attached is a screenshot showing how it looks in 4.2.3 (left) and 5.0.5 (right)
Files
Updated by Eric Brun over 1 year ago
Hi,
I had same issue with CKEditor Plugin (Redminex) when I upgrade Redmine from 4 to 5.
In the CKEditor plugin you can fix it by editing the following file :
%{REDMINE_HOME}/plugins/redmine_ckeditor/rich/lib/rich/url_generator.rb
and change the escape_url method by :
def escape_url(url) if url.respond_to?(:escape) url.escape else #escaped = URI.escape(url).gsub(escape_regex){|m| "%#{m.ord.to_s(16).upcase}" } #CGI.escape(url).gsub("%2F", "/") <= The wrong escape url end end
Hope that help,
Eric
Updated by Thomas B over 1 year ago
Hi eric,
that seems to have fixed the issue.
Thank you very much
BR,
Updated by Mischa The Evil about 1 year ago
- Affected version changed from 5.0.4 to 5.0.5