Here's a patch to link.inc to fix the problem. (patch also indirectly corrects a couple of trailing space on two other lines)

CommentFileSizeAuthor
counter_fix.patch984 bytesSteve Dondley

Comments

syscrusher’s picture

This patch was applied some time ago, but I forgot to update this issue when I did it. I think this patch was later obsoleted by the newer versions of links.inc. The relevant code now appears at about line 922 in links.inc. If you're so inclined, please test the current code to make sure I haven't re-introduced the issue you reported originally. I am pretty sure things are okay now because the new code does essentially the same logic as the patch, just in a different way.

Thanks.

Syscrusher