else
{
internalHrefCount++;
- String relFile = System.getProperty("os.name").indexOf("Win") > -1 ? href.replace('/', '\\') : href;
+ String relFile = System.getProperty("os.name").indexOf("Win") > -1 ? href.replace("/", File.separator) : href;
File hrefFile = href.equals("") ? htmlFile : new File(htmlFolder,
href);
- if (hrefFile != htmlFile && !fileExists(hrefFile, href))
+ if (hrefFile != htmlFile && !fileExists(hrefFile, relFile))
{
badLink = true;
invalidInternalHrefCount++;