Skip to content

Commit

Permalink
Merge pull request dotCMS#5927 from dotCMS/issue-4012-linkchecker-tests
Browse files Browse the repository at this point in the history
dotCMS#4012 tailing dots on domain names
  • Loading branch information
Jason Tesser committed Jul 17, 2014
2 parents 98b28a4 + 95acac1 commit edada31
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ public void findInvalidLinks() throws Exception {
// basic external links //
//////////////////////////
String[] extlinks=new String[]{
"http://thissitedoesntexists.imsureaboutthat.badextension",
"https://somebadhostovergoogle.google.com", // hope they don't create it in the future
"http://thisisabadhostover.dotcms.comx", // yeah small typo
"http://thissitedoesntexists.imsureaboutthat.badextension.",
"https://somebadhostovergoogle.google.com.", // hope they don't create it in the future
"http://thisisabadhostover.dotcms.comx.", // yeah small typo
"mailto:dev@dotcms.com", // should ignore this one
"webcalc://somehostnomatter.itsbad", // should ignore this
"http://www.oracle.com/index.html" // this is a good link
"webcalc://somehostnomatter.itsbad.", // should ignore this
"http://www.oracle.com./index.html" // this is a good link
};
HashSet<String> links=new HashSet<String>(Arrays.asList(extlinks));
StringBuilder sb=new StringBuilder("<html><body>\n");
Expand Down

0 comments on commit edada31

Please sign in to comment.