1
Vote

pb if websites name or documents name contains "sites"

description

There is a problem to download documents if the site name or the document name contains "sites".
To fix it, just add "/" to the getRelativeFileRef method (ligne 892 of DocExtractor.cs).

Like this :
    private string getRelativeFileRef(string rUrl)
    {
        rUrl = rUrl.ToLower();

        rUrl = rUrl.Substring(rUrl.IndexOf("#") + 1);

        __while (rUrl.Contains("sites/"))__
        {
            // to pass after 'sites/'
            rUrl = rUrl.Substring(rUrl.IndexOf("sites") + 6);

            // to pass after the first site name,
             rUrl = rUrl.Substring(rUrl.IndexOf("/") + 1);

            // Example: http://dev/sites/ibr/.. --> so substring will start after last '/'
        }
        return rUrl;
    }
Thanks for your this project.

comments