mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
replace filename slashes
This commit is contained in:
1 parent
307036eae6
commit
781da32a07
7 files changed
+8
-8
No files matched your search
@@ -63,7 +63,7 @@ class TemplatesUploadsController < ApplicationController
|
||||
tempfile.write(DownloadUtils.call(params[:url], validate: true).body)
|
||||
tempfile.rewind
|
||||
|
||||
filename = URI.decode_www_form_component(params[:filename]) if params[:filename].present?
|
||||
filename = URI.decode_www_form_component(params[:filename]).tr('/', '-') if params[:filename].present?
|
||||
filename ||= File.basename(URI.decode_www_form_component(params[:url]))
|
||||
|
||||
file = ActionDispatch::Http::UploadedFile.new(
|
||||
|
||||
Reference in new issue
Block a user