lib/mantisrb/session.rb
# Trim out and try to fix a bad URL if it is passed in incorrectly
# @param [String] url URL to clean
# @return [String] A URL that should be just the mantis URL + SOAP endpoint
Trim out and try to fix a bad URL if it is passed in incorrectly
Trim out and try to fix a bad URL if it is passed in incorrectly
def sanitize_api_url(url)
      unless url.match(/\/api\//)
        return url + SOAP_API
      end
      url
    end
def sanitize_api_url ( url ) unless url . match ( / \/ api \/ / ) return url + SOAP_API end url end
Trim out and try to fix a bad URL if it is passed in incorrectly
Trim out and try to fix a bad URL if it is passed in incorrectly
A URL that should be just the mantis URL + SOAP endpoint
A URL that should be just the mantis URL + SOAP endpoint
String
url
url URL to clean
url URL to clean