diff --git a/app/controllers/import_otrs_controller.rb b/app/controllers/import_otrs_controller.rb index d163c900c..197073a75 100644 --- a/app/controllers/import_otrs_controller.rb +++ b/app/controllers/import_otrs_controller.rb @@ -43,7 +43,7 @@ class ImportOtrsController < ApplicationController suffixes = ['/public.pl', '/otrs/public.pl'] suffixes.each {|suffix| url = params[:url] + suffix + '?Action=ZammadMigrator' - # strip multible / in url + # strip multiple / in url url.gsub!(%r{([^:])(/+/)}, '\\1/') response = UserAgent.request( url ) diff --git a/lib/core_ext/string.rb b/lib/core_ext/string.rb index 5b3a37e47..049e88e6c 100644 --- a/lib/core_ext/string.rb +++ b/lib/core_ext/string.rb @@ -141,7 +141,7 @@ class String # strip all other tags string.gsub!( /\<.+?\>/, '' ) - # replace multible spaces with one + # replace multiple spaces with one string.gsub!(/ /, ' ') # strip all & < > " @@ -185,7 +185,7 @@ class String # remove tailing empty spaces string.gsub!(/\s+\n$/, "\n") - # remove multible empty lines + # remove multiple empty lines string.gsub!(/\n\n\n/, "\n\n") string.strip!