mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
validate url
This commit is contained in:
1 parent
90be34b243
commit
726d0ea4f3
2 files changed
+7
-3
No files matched your search
@@ -6,7 +6,9 @@ class TemplatesUploadsController < ApplicationController
|
||||
layout 'plain'
|
||||
|
||||
def show
|
||||
redirect_to root_path if params[:url].blank?
|
||||
url_uri = Addressable::URI.parse(params[:url].to_s)
|
||||
|
||||
redirect_to root_path if url_uri.normalized_scheme != 'https' || url_uri.host.blank?
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
Reference in new issue
Block a user