From bd8ba667214ab533a9de46b21e14ae45e82fa329 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 21 Aug 2017 11:59:21 +0200 Subject: [PATCH] Improved Zendesk invalid URL check. --- app/controllers/import_zendesk_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/import_zendesk_controller.rb b/app/controllers/import_zendesk_controller.rb index cd64441b9..62d56093e 100644 --- a/app/controllers/import_zendesk_controller.rb +++ b/app/controllers/import_zendesk_controller.rb @@ -40,8 +40,8 @@ class ImportZendeskController < ApplicationController return end - # since 2016-10-15 a redirect to a signup page has been implemented - if response.body =~ /(Take it for a risk-free|Take it for a risk-free)/i + # since 2016-10-15 a redirect to a marketing page has been implemented + if response.body !~ /#{params[:url]}/ render json: { result: 'invalid', message_human: 'Hostname not found!',