I'm using the book documentclass and the footmisc package.
I made some changes to the original footnote macros, and this causes the following problem when the footnoted word is on the last couple of lines of the page:
A minimal (not)working example:
book.main.tex
mylayout.sty
If line 67. in mylayout.sty is commented out, the footnoterule and the footnote moves to the next page, which is the expected behaviour. It beats me why it leaves the rule on the prev. page otherwise.

\lipsumor\blindtextfrom the packages of the same name. – Martin Scharrer♦ May 9 '11 at 12:37