Duplicated code in index.php
It seems there is duplicated code in index.php which is both inside and outside of the displayLogin function. There is also missing preg_replace around error_collector which leads to mail with content "%BUGBODY%" instead of errors.
(from redmine: issue id 714, created on 2012-03-21, closed on 2012-03-27)