X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fcocanwiki_links.ml;h=0cfcd82e14c95aa8ecac5e96657151c9a49bf641;hb=288535f82bf4a5d944536bd0790a54a5f8fb4363;hp=cd3b13f965a2e74184693d3c1c87a1ee104eece3;hpb=1369df97706627c4470868937c6f0f25bdf57e24;p=cocanwiki.git diff --git a/scripts/cocanwiki_links.ml b/scripts/cocanwiki_links.ml index cd3b13f..0cfcd82 100644 --- a/scripts/cocanwiki_links.ml +++ b/scripts/cocanwiki_links.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: cocanwiki_links.ml,v 1.5 2004/10/10 16:14:43 rich Exp $ + * $Id: cocanwiki_links.ml,v 1.6 2004/10/17 20:03:23 rich Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -129,6 +129,10 @@ let update_links_for_page dbh hostid page = * page isn't a matter of just doing 'select from_url from links ...'. * We also look at pages which redirect to this URL (for redirections * of degrees 1 through 4 = max_redirect). + * + * XXX If page A links both to pages B and C, and page B is a redirect + * to page C, then querying what links to page C will list page A twice. + * This is a bug. *) let what_links_here (dbh : Dbi.connection) hostid page = (* Build up the complete list of URLs which redirect to the target