Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[carddav] Improve URL path repetition detection logic #6

Closed
wants to merge 1 commit into from

Commits on Jan 5, 2015

  1. [carddav] Improve URL path repetition detection logic

    Some services (such as self-hosted OwnCloud servers) have a base url
    which includes both a host and a path segment.  When performing later
    requests to another path (e.g., a user principals url request), we
    need to ensure that we do not duplicate the suffix path-segment from
    the base url, as it may already appear as a prefix in the request-path.
    
    e.g.:
    baseUrl: http://my.oc.tld/owncloud/remote.php/carddav
    request: /owncloud/remote.php/carddav/principals/fred
    result:  http://my.oc.tld/owncloud/remote.php/carddav/principals/fred
    chriadam committed Jan 5, 2015
    Configuration menu
    Copy the full SHA
    e251779 View commit details
    Browse the repository at this point in the history