Improved Zendesk invalid URL check.
This commit is contained in:
parent
7a142a5467
commit
bd8ba66721
1 changed files with 2 additions and 2 deletions
|
@ -40,8 +40,8 @@ class ImportZendeskController < ApplicationController
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
# since 2016-10-15 a redirect to a signup page has been implemented
|
# since 2016-10-15 a redirect to a marketing page has been implemented
|
||||||
if response.body =~ /(Take it for a risk-free|Take it for a risk-free)/i
|
if response.body !~ /#{params[:url]}/
|
||||||
render json: {
|
render json: {
|
||||||
result: 'invalid',
|
result: 'invalid',
|
||||||
message_human: 'Hostname not found!',
|
message_human: 'Hostname not found!',
|
||||||
|
|
Loading…
Reference in a new issue